resource
ModuleWhat a transfer moves: Resource, its common state and its kinds.
Contents
2 submodules, and what the module defines itself.
use utopia_migration::resource::Base;pub struct BaseThe state every resource has.
Default.use utopia_migration::resource::Chunk;pub struct ChunkA chunk of a file or deployment being transferred.
use utopia_migration::resource::DatabaseResources;pub struct DatabaseResourcesThe resource names of one database family: its entity (table or collection), field (column or attribute) and record (row or document).
use utopia_migration::resource::EntityResources;pub struct EntityResourcesThe resource names scoped to one entity type: field, record and index.
use utopia_migration::Resource;pub struct ResourceOne resource: its common state and its kind.
use utopia_migration::Kind;pub enum KindWhat a resource is: its type and the data of that type.
use utopia_migration::resource::CustomResource;pub trait CustomResource: std::fmt::Debug + Send + SyncUndocumented.
use utopia_migration::resource::database_resources;pub fn database_resources(database: &str) -> Option<&'static DatabaseResources>The map entry of database type database.
use utopia_migration::resource::is_supported;pub fn is_supported<T: AsRef<str>, R: AsRef<str>>(types: &[T], resources: &[R]) -> boolWhether any of types (or its legacy name) is in resources.
pub type ResourceRef = Arc<Resource>A shared resource.
pub const ALL_RESOURCES: &[&str] = &[ types::COLUMN, types::BUCKET, types::TABLE, types::DATABASE, types::DATABASE_VECTORSDB, types::DATABASE_DOCUMENTSDB, types::ROW, types::FILE, types::FUNCTION, types::DEPLOYMENT, types::SITE, types::SITE_DEPLOYMENT, types::SITE_VARIABLE, types::HASH, types::INDEX, types::USER, types::ENVIRONMENT_VARIABLE, types::TEAM, types::MEMBERSHIP, types::AUTH_METHODS, types::POLICIES, types::OAUTH2_PROVIDER, types::PLATFORM, types::API_KEY, types::WEBHOOK, types::SMTP, types::PROJECT_VARIABLE, types::PROJECT_PROTOCOLS, types::PROJECT_LABELS,Undocumented.
pub const DATABASE_TYPE_RESOURCE_MAP: &[DatabaseResources] = &[ DatabaseResourcesResource::DATABASE_TYPE_RESOURCE_MAP, in its order.
pub const ENTITY_TYPE_RESOURCE_MAP: &[EntityResources] = &[ EntityResourcesResource::ENTITY_TYPE_RESOURCE_MAP, in its order.
resource::status
Own pagepub const DISREGARDED: &str = "disregarded"Kept for the transfer's own use, not transferred.
pub const ERROR: &str = "error"Failed.
pub const PENDING: &str = "pending"Not processed yet.
pub const PROCESSING: &str = "processing"Being imported.
pub const SKIPPED: &str = "skip"Not transferred (not requested, or already on the destination).
pub const SUCCESS: &str = "success"Transferred.
pub const WARNING: &str = "warning"Transferred with a warning.
resource::types
Own pagepub const API_KEY: &str = "api-key"An API key.
pub const ATTRIBUTE: &str = "attribute"An attribute (legacy name of a column).
pub const AUTH_METHODS: &str = "auth-methods"The project's auth methods.
pub const BACKUP_POLICY: &str = "backup-policy"A backup policy.
pub const BUCKET: &str = "bucket"A storage bucket.
pub const COLLECTION: &str = "collection"A collection (legacy name of a table).
pub const COLUMN: &str = "column"A column.
pub const DATABASE: &str = "database"A database.
pub const DATABASE_DOCUMENTSDB: &str = "documentsdb"A DocumentsDB database.
pub const DATABASE_LEGACY: &str = "legacy"A legacy database (type of a database document).
pub const DATABASE_TABLESDB: &str = "tablesdb"A TablesDB database (type of a database document).
pub const DATABASE_VECTORSDB: &str = "vectorsdb"A VectorsDB database.
pub const DEPLOYMENT: &str = "deployment"A function deployment.
pub const DOCUMENT: &str = "document"A document (legacy name of a row).
pub const ENVIRONMENT_VARIABLE: &str = "environment-variable"A function variable.
pub const FILE: &str = "file"A file.
pub const FUNCTION: &str = "function"A function.
pub const HASH: &str = "hash"A password hash.
pub const INDEX: &str = "index"An index.
pub const MEMBERSHIP: &str = "membership"A team membership.
pub const MESSAGE: &str = "message"A message.
pub const OAUTH2_PROVIDER: &str = "oauth2-provider"An OAuth2 provider (one type for every provider).
pub const PLATFORM: &str = "platform"A platform.
pub const POLICIES: &str = "policies"The project's auth policies.
pub const PROJECT_EMAIL_TEMPLATE: &str = "project-email-template"A project email template.
pub const PROJECT_LABELS: &str = "project-labels"The project's labels.
pub const PROJECT_PROTOCOLS: &str = "project-protocols"The project's protocols.
pub const PROJECT_SERVICES: &str = "project-services"The project's services.
pub const PROJECT_VARIABLE: &str = "project-variable"A project variable.
pub const PROVIDER: &str = "provider"A messaging provider.
pub const ROW: &str = "row"A row.
pub const RULE: &str = "rule"A domain rule.
pub const SITE: &str = "site"A site.
pub const SITE_DEPLOYMENT: &str = "site-deployment"A site deployment.
pub const SITE_VARIABLE: &str = "site-variable"A site variable.
pub const SMTP: &str = "smtp"The project's SMTP settings.
pub const SUBSCRIBER: &str = "subscriber"A topic subscriber.
pub const TABLE: &str = "table"A table.
pub const TEAM: &str = "team"A team.
pub const TOPIC: &str = "topic"A messaging topic.
pub const USER: &str = "user"A user.
pub const WEBHOOK: &str = "webhook"A webhook.