pub struct ScopedComponentId(/* private fields */);Expand description
Stable logical identity of one job- or step-scoped component.
Implementations§
Source§impl ScopedComponentId
impl ScopedComponentId
Sourcepub fn new(
value: impl Into<String>,
) -> Result<ScopedComponentId, DefinitionError>
pub fn new( value: impl Into<String>, ) -> Result<ScopedComponentId, DefinitionError>
Validates and constructs the token.
§Errors
Rejects empty values, values longer than 128 UTF-8 bytes, surrounding whitespace, and control characters.
Trait Implementations§
Source§impl Clone for ScopedComponentId
impl Clone for ScopedComponentId
Source§fn clone(&self) -> ScopedComponentId
fn clone(&self) -> ScopedComponentId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopedComponentId
impl Debug for ScopedComponentId
impl Eq for ScopedComponentId
Source§impl Hash for ScopedComponentId
impl Hash for ScopedComponentId
Source§impl Ord for ScopedComponentId
impl Ord for ScopedComponentId
Source§fn cmp(&self, other: &ScopedComponentId) -> Ordering
fn cmp(&self, other: &ScopedComponentId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ScopedComponentId
impl PartialEq for ScopedComponentId
Source§impl PartialOrd for ScopedComponentId
impl PartialOrd for ScopedComponentId
impl StructuralPartialEq for ScopedComponentId
Auto Trait Implementations§
impl Forget for ScopedComponentId
impl Freeze for ScopedComponentId
impl Move for ScopedComponentId
impl RefUnwindSafe for ScopedComponentId
impl Send for ScopedComponentId
impl Sync for ScopedComponentId
impl Unpin for ScopedComponentId
impl UnsafeUnpin for ScopedComponentId
impl UnwindSafe for ScopedComponentId
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