pub struct ArtifactRef {
pub scope: ArtifactScope,
pub artifact_id: String,
pub media_type: String,
pub size_bytes: u64,
pub sha256: String,
pub name: Option<String>,
pub created_at_unix_ms: u64,
pub expires_at_unix_ms: Option<u64>,
}Expand description
A stable, integrity-bound reference to binary artifact content.
Fields§
§scope: ArtifactScopeTenant or application isolation boundary.
artifact_id: StringStore-owned stable identity.
media_type: StringTrusted MIME type associated with the stored bytes.
size_bytes: u64Raw content length.
sha256: StringLowercase SHA-256 digest.
name: Option<String>Optional neutral display name.
created_at_unix_ms: u64Store-assigned creation time in Unix milliseconds.
expires_at_unix_ms: Option<u64>Optional expiration time in Unix milliseconds.
Implementations§
Source§impl ArtifactRef
impl ArtifactRef
Sourcepub fn media_source(&self) -> MediaSource
pub fn media_source(&self) -> MediaSource
Converts this reference into canonical lazy media.
Trait Implementations§
Source§impl Clone for ArtifactRef
impl Clone for ArtifactRef
Source§fn clone(&self) -> ArtifactRef
fn clone(&self) -> ArtifactRef
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 ArtifactRef
impl Debug for ArtifactRef
Source§impl<'de> Deserialize<'de> for ArtifactRef
impl<'de> Deserialize<'de> for ArtifactRef
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 ArtifactRef
Source§impl PartialEq for ArtifactRef
impl PartialEq for ArtifactRef
Source§impl Serialize for ArtifactRef
impl Serialize for ArtifactRef
impl StructuralPartialEq for ArtifactRef
Auto Trait Implementations§
impl Freeze for ArtifactRef
impl RefUnwindSafe for ArtifactRef
impl Send for ArtifactRef
impl Sync for ArtifactRef
impl Unpin for ArtifactRef
impl UnsafeUnpin for ArtifactRef
impl UnwindSafe for ArtifactRef
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