pub enum ArtifactIdentity {
Auto,
Man,
}Expand description
How callers distinguish resources containing the same bytes.
Variants§
Implementations§
Source§impl ArtifactIdentity
impl ArtifactIdentity
pub const fn code(self) -> &'static str
pub fn from_code(value: &str) -> Result<Self, ArtifactReferenceError>
Sourcepub fn validate_creation_id(
self,
id: Option<&str>,
) -> Result<(), ArtifactReferenceError>
pub fn validate_creation_id( self, id: Option<&str>, ) -> Result<(), ArtifactReferenceError>
Manual IDs are supplied and retained verbatim by callers.
Trait Implementations§
Source§impl Clone for ArtifactIdentity
impl Clone for ArtifactIdentity
impl Copy for ArtifactIdentity
Source§impl Debug for ArtifactIdentity
impl Debug for ArtifactIdentity
Source§impl Default for ArtifactIdentity
impl Default for ArtifactIdentity
Source§impl<'de> Deserialize<'de> for ArtifactIdentity
impl<'de> Deserialize<'de> for ArtifactIdentity
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 ArtifactIdentity
Source§impl Hash for ArtifactIdentity
impl Hash for ArtifactIdentity
Source§impl PartialEq for ArtifactIdentity
impl PartialEq for ArtifactIdentity
Source§impl Serialize for ArtifactIdentity
impl Serialize for ArtifactIdentity
impl StructuralPartialEq for ArtifactIdentity
Auto Trait Implementations§
impl Freeze for ArtifactIdentity
impl RefUnwindSafe for ArtifactIdentity
impl Send for ArtifactIdentity
impl Sync for ArtifactIdentity
impl Unpin for ArtifactIdentity
impl UnsafeUnpin for ArtifactIdentity
impl UnwindSafe for ArtifactIdentity
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