Struct hydrate_base::ArtifactId
source · pub struct ArtifactId(pub Uuid);
Expand description
ID of a built piece of data. A build job can produce any number of artifacts, usually reading import data and/or asset data. Different platforms may have different artifacts for the same conceptual piece of data
Tuple Fields§
§0: Uuid
Implementations§
source§impl ArtifactId
impl ArtifactId
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 ArtifactId
impl Clone for ArtifactId
source§fn clone(&self) -> ArtifactId
fn clone(&self) -> ArtifactId
Returns a copy 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 ArtifactId
impl Debug for ArtifactId
source§impl Default for ArtifactId
impl Default for ArtifactId
source§fn default() -> ArtifactId
fn default() -> ArtifactId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ArtifactId
impl<'de> Deserialize<'de> for ArtifactId
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 ArtifactId
impl Display for ArtifactId
source§impl Hash for ArtifactId
impl Hash for ArtifactId
source§impl Ord for ArtifactId
impl Ord for ArtifactId
source§fn cmp(&self, other: &ArtifactId) -> Ordering
fn cmp(&self, other: &ArtifactId) -> 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 ArtifactId
impl PartialEq for ArtifactId
source§fn eq(&self, other: &ArtifactId) -> bool
fn eq(&self, other: &ArtifactId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ArtifactId
impl PartialOrd for ArtifactId
source§fn partial_cmp(&self, other: &ArtifactId) -> Option<Ordering>
fn partial_cmp(&self, other: &ArtifactId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ArtifactId
impl Serialize for ArtifactId
impl Copy for ArtifactId
impl Eq for ArtifactId
impl StructuralPartialEq for ArtifactId
Auto Trait Implementations§
impl RefUnwindSafe for ArtifactId
impl Send for ArtifactId
impl Sync for ArtifactId
impl Unpin for ArtifactId
impl UnwindSafe for ArtifactId
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