#[non_exhaustive]pub struct Collection {
pub uuid: CollectionId,
pub version: u64,
pub created_date: TeaTimestamp,
pub belongs_to: CollectionOwner,
pub update_reason: CollectionUpdateReason,
pub artifacts: Vec<Artifact>,
}Expand description
A TEA Collection version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uuid: CollectionIdCollection UUID. Equal to the parent release UUID.
version: u64Collection version, starting at 1.
created_date: TeaTimestampCreation time of this collection version.
belongs_to: CollectionOwnerParent object type.
update_reason: CollectionUpdateReasonWhy this version was published.
artifacts: Vec<Artifact>Artifacts. Empty is valid for the initial collection version.
Implementations§
Source§impl Collection
impl Collection
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§impl Debug for Collection
impl Debug for Collection
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
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 Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
Source§impl Serialize for Collection
impl Serialize for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Forget for Collection
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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