pub struct ScopedComponentDefinition { /* private fields */ }Expand description
Restart-relevant declaration for one job- or step-scoped component.
Actual resolved values and application resources are deliberately absent. Declaration order cannot affect fingerprint material because inputs are canonicalized by their stable input name.
Implementations§
Source§impl ScopedComponentDefinition
impl ScopedComponentDefinition
Sourcepub fn new(
scope: ScopeKind,
id: ScopedComponentId,
factory_kind: ScopeFactoryKind,
factory_revision: ComponentRevision,
resolver_kind: ScopeResolverKind,
resolver_revision: ComponentRevision,
inputs: Vec<LateBoundInput>,
) -> Result<Self, LateBindingDefinitionError>
pub fn new( scope: ScopeKind, id: ScopedComponentId, factory_kind: ScopeFactoryKind, factory_revision: ComponentRevision, resolver_kind: ScopeResolverKind, resolver_revision: ComponentRevision, inputs: Vec<LateBoundInput>, ) -> Result<Self, LateBindingDefinitionError>
Constructs a bounded, canonical scoped-component definition.
§Errors
Rejects more than 64 late-bound inputs or duplicate stable input names.
Sourcepub const fn id(&self) -> &ScopedComponentId
pub const fn id(&self) -> &ScopedComponentId
Borrows the logical component identifier.
Sourcepub const fn factory_kind(&self) -> &ScopeFactoryKind
pub const fn factory_kind(&self) -> &ScopeFactoryKind
Borrows the application-owned factory kind.
Sourcepub const fn factory_revision(&self) -> &ComponentRevision
pub const fn factory_revision(&self) -> &ComponentRevision
Borrows the restart-relevant factory revision.
Sourcepub const fn resolver_kind(&self) -> &ScopeResolverKind
pub const fn resolver_kind(&self) -> &ScopeResolverKind
Borrows the application-owned resolver kind.
Sourcepub const fn resolver_revision(&self) -> &ComponentRevision
pub const fn resolver_revision(&self) -> &ComponentRevision
Borrows the restart-relevant resolver revision.
Sourcepub fn inputs(&self) -> &[LateBoundInput]
pub fn inputs(&self) -> &[LateBoundInput]
Borrows late-bound inputs in canonical input-name order.
Trait Implementations§
Source§impl Clone for ScopedComponentDefinition
impl Clone for ScopedComponentDefinition
Source§impl Debug for ScopedComponentDefinition
impl Debug for ScopedComponentDefinition
impl Eq for ScopedComponentDefinition
impl StructuralPartialEq for ScopedComponentDefinition
Auto Trait Implementations§
impl Forget for ScopedComponentDefinition
impl Freeze for ScopedComponentDefinition
impl Move for ScopedComponentDefinition
impl RefUnwindSafe for ScopedComponentDefinition
impl Send for ScopedComponentDefinition
impl Sync for ScopedComponentDefinition
impl Unpin for ScopedComponentDefinition
impl UnsafeUnpin for ScopedComponentDefinition
impl UnwindSafe for ScopedComponentDefinition
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
Mutably borrows from an owned value. Read more