pub struct ArtifactReference { /* private fields */ }Expand description
Canonical, scope-owned, content-addressed artifact identity.
Implementations§
Source§impl ArtifactReference
impl ArtifactReference
pub fn new( tenant_id: impl Into<String>, scope_id: impl Into<String>, sha256: impl Into<String>, metadata: ArtifactMetadata, ) -> Result<Self, ArtifactReferenceError>
pub fn parse(value: &str) -> Result<Self, ArtifactReferenceError>
pub fn uri(&self) -> Result<String, ArtifactReferenceError>
pub fn tenant_id(&self) -> &str
pub fn scope_id(&self) -> &str
pub fn sha256(&self) -> &str
pub const fn metadata(&self) -> &ArtifactMetadata
pub fn ensure_scope( &self, tenant_id: &str, scope_id: &str, ) -> Result<(), ArtifactReferenceError>
Trait Implementations§
Source§impl Clone for ArtifactReference
impl Clone for ArtifactReference
Source§fn clone(&self) -> ArtifactReference
fn clone(&self) -> ArtifactReference
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 ArtifactReference
impl Debug for ArtifactReference
impl Eq for ArtifactReference
Source§impl PartialEq for ArtifactReference
impl PartialEq for ArtifactReference
impl StructuralPartialEq for ArtifactReference
Auto Trait Implementations§
impl Freeze for ArtifactReference
impl RefUnwindSafe for ArtifactReference
impl Send for ArtifactReference
impl Sync for ArtifactReference
impl Unpin for ArtifactReference
impl UnsafeUnpin for ArtifactReference
impl UnwindSafe for ArtifactReference
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