pub struct ArtifactTypeId(pub Uuid);
Expand description
Identified an artifact type. These are not schema-aware and get rebuilt if the data format changes. It’s defined as a UUID on the struct itself.
Tuple Fields§
§0: Uuid
Implementations§
Source§impl ArtifactTypeId
impl ArtifactTypeId
pub const fn null() -> Self
pub fn parse_str(input: &str) -> Result<Self, Error>
pub fn is_null(&self) -> bool
pub fn from_uuid(uuid: Uuid) -> Self
pub fn as_uuid(&self) -> Uuid
pub fn from_u128(u: u128) -> Self
pub fn as_u128(&self) -> u128
pub fn from_bytes(bytes: Bytes) -> Self
pub fn as_bytes(&self) -> &Bytes
Trait Implementations§
Source§impl Clone for ArtifactTypeId
impl Clone for ArtifactTypeId
Source§fn clone(&self) -> ArtifactTypeId
fn clone(&self) -> ArtifactTypeId
Returns a duplicate of the value. Read more
1.0.0 · 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 ArtifactTypeId
impl Debug for ArtifactTypeId
Source§impl Default for ArtifactTypeId
impl Default for ArtifactTypeId
Source§fn default() -> ArtifactTypeId
fn default() -> ArtifactTypeId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArtifactTypeId
impl<'de> Deserialize<'de> for ArtifactTypeId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ArtifactTypeId
impl Display for ArtifactTypeId
Source§impl Hash for ArtifactTypeId
impl Hash for ArtifactTypeId
Source§impl Ord for ArtifactTypeId
impl Ord for ArtifactTypeId
Source§fn cmp(&self, other: &ArtifactTypeId) -> Ordering
fn cmp(&self, other: &ArtifactTypeId) -> Ordering
1.21.0 · 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 ArtifactTypeId
impl PartialEq for ArtifactTypeId
Source§impl PartialOrd for ArtifactTypeId
impl PartialOrd for ArtifactTypeId
Source§impl Serialize for ArtifactTypeId
impl Serialize for ArtifactTypeId
impl Copy for ArtifactTypeId
impl Eq for ArtifactTypeId
impl StructuralPartialEq for ArtifactTypeId
Auto Trait Implementations§
impl Freeze for ArtifactTypeId
impl RefUnwindSafe for ArtifactTypeId
impl Send for ArtifactTypeId
impl Sync for ArtifactTypeId
impl Unpin for ArtifactTypeId
impl UnwindSafe for ArtifactTypeId
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.