pub struct ArtifactScope(/* private fields */);Expand description
Validated tenant or application isolation boundary for artifacts.
Implementations§
Source§impl ArtifactScope
impl ArtifactScope
Sourcepub fn parse(value: impl Into<String>) -> Result<Self, ArtifactError>
pub fn parse(value: impl Into<String>) -> Result<Self, ArtifactError>
Parses a bounded, storage-safe scope.
§Errors
Returns ArtifactError::InvalidInput when the value is empty, too
long, or contains characters that are unsafe for storage boundaries.
Trait Implementations§
Source§impl Clone for ArtifactScope
impl Clone for ArtifactScope
Source§fn clone(&self) -> ArtifactScope
fn clone(&self) -> ArtifactScope
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 ArtifactScope
impl Debug for ArtifactScope
Source§impl<'de> Deserialize<'de> for ArtifactScope
impl<'de> Deserialize<'de> for ArtifactScope
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArtifactScope
Source§impl Ord for ArtifactScope
impl Ord for ArtifactScope
Source§fn cmp(&self, other: &ArtifactScope) -> Ordering
fn cmp(&self, other: &ArtifactScope) -> 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
Source§impl PartialEq for ArtifactScope
impl PartialEq for ArtifactScope
Source§impl PartialOrd for ArtifactScope
impl PartialOrd for ArtifactScope
Source§impl Serialize for ArtifactScope
impl Serialize for ArtifactScope
impl StructuralPartialEq for ArtifactScope
Auto Trait Implementations§
impl Freeze for ArtifactScope
impl RefUnwindSafe for ArtifactScope
impl Send for ArtifactScope
impl Sync for ArtifactScope
impl Unpin for ArtifactScope
impl UnsafeUnpin for ArtifactScope
impl UnwindSafe for ArtifactScope
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