pub struct TypeBridgeConfigBuilder { /* private fields */ }Expand description
A consuming typed builder for TypeBridgeConfig.
The builder accepts only validated nested values. build performs the
remaining cross-field and injected-service checks without loading schema or
consulting any provider.
Implementations§
Source§impl TypeBridgeConfigBuilder
impl TypeBridgeConfigBuilder
Sourcepub fn schema_set(self, path: SchemaSetPath) -> Self
pub fn schema_set(self, path: SchemaSetPath) -> Self
Select the portable schema-set manifest.
Sourcepub fn app_label(self, app_label: MigrationAppLabel) -> Self
pub fn app_label(self, app_label: MigrationAppLabel) -> Self
Select the validated migration application label.
Sourcepub fn exclusive_managed_scope(self, scope_id: ManagedScopeId) -> Self
pub fn exclusive_managed_scope(self, scope_id: ManagedScopeId) -> Self
Bind the durable managed-scope identity to the sole exclusive profile.
Sourcepub fn semantic_profile(self, profile: SemanticProfileId) -> Self
pub fn semantic_profile(self, profile: SemanticProfileId) -> Self
Select the exact server-semantic profile.
Sourcepub fn migration_v2_directory(self, directory: MigrationV2Directory) -> Self
pub fn migration_v2_directory(self, directory: MigrationV2Directory) -> Self
Select the confined direct V2 migration directory.
Sourcepub fn migration_policy(self, policy: MigrationSafetyPolicy) -> Self
pub fn migration_policy(self, policy: MigrationSafetyPolicy) -> Self
Replace the default apply-side migration safety policy.
MigrationSafetyPolicy construction already rejects every standing
allowance for destructive or opaque work, so no builder input spells a
permanent force = true.
Sourcepub fn require_capability(self, capability: CapabilityId) -> Self
pub fn require_capability(self, capability: CapabilityId) -> Self
Add one open capability requirement without replacing prior requirements.
Sourcepub fn require_capabilities(
self,
capabilities: impl IntoIterator<Item = CapabilityId>,
) -> Self
pub fn require_capabilities( self, capabilities: impl IntoIterator<Item = CapabilityId>, ) -> Self
Add capability requirements without replacing prior requirements.
Sourcepub fn output(self, target: BindingTarget, directory: OutputDirectory) -> Self
pub fn output(self, target: BindingTarget, directory: OutputDirectory) -> Self
Add one independently regenerated shipped binding target.
Sourcepub fn type_name_override(
self,
target: BindingTarget,
type_id: TypeId,
name: impl Into<String>,
) -> Self
pub fn type_name_override( self, target: BindingTarget, type_id: TypeId, name: impl Into<String>, ) -> Self
Override a generated model name while retaining its canonical database identity.
Select the generated server schema-authority artifact path.
Sourcepub fn environment(
self,
name: impl Into<String>,
environment: WorkspaceEnvironment,
) -> Self
pub fn environment( self, name: impl Into<String>, environment: WorkspaceEnvironment, ) -> Self
Add one named deployment environment.
Sourcepub fn secret(self, slot: SecretSlot, reference: SecretReference) -> Self
pub fn secret(self, slot: SecretSlot, reference: SecretReference) -> Self
Add one retained symbolic secret reference.
Sourcepub fn require_extension(self, requirement: ExtensionRequirement) -> Self
pub fn require_extension(self, requirement: ExtensionRequirement) -> Self
Add one exact local extension requirement.
Sourcepub fn build(
self,
services: &TypeBridgeConfigServices<'_>,
) -> Result<TypeBridgeConfig, WorkspaceConfigError>
pub fn build( self, services: &TypeBridgeConfigServices<'_>, ) -> Result<TypeBridgeConfig, WorkspaceConfigError>
Validate the complete config using only the explicitly injected services.
Auto Trait Implementations§
impl Freeze for TypeBridgeConfigBuilder
impl RefUnwindSafe for TypeBridgeConfigBuilder
impl Send for TypeBridgeConfigBuilder
impl Sync for TypeBridgeConfigBuilder
impl Unpin for TypeBridgeConfigBuilder
impl UnsafeUnpin for TypeBridgeConfigBuilder
impl UnwindSafe for TypeBridgeConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more