pub struct MediaRef {
pub uri: CanonicalUrl,
pub content_type: String,
pub size: u64,
pub sha256: Sha256Hex,
}Expand description
Bytes by reference: where they live, what they are, and the integrity hash a resolver verifies after fetching (rev 2.3). Bytes never ride the log or a tool response — delivery is out-of-band.
Fields§
§uri: CanonicalUrlWhere the bytes live (content-addressed store or external URL).
content_type: StringMIME type of the referenced bytes.
size: u64Size in bytes.
sha256: Sha256HexSHA-256 of the bytes, hex-encoded — verify what you fetched.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaRef
impl<'de> Deserialize<'de> for MediaRef
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 MediaRef
impl StructuralPartialEq for MediaRef
Auto Trait Implementations§
impl Freeze for MediaRef
impl RefUnwindSafe for MediaRef
impl Send for MediaRef
impl Sync for MediaRef
impl Unpin for MediaRef
impl UnsafeUnpin for MediaRef
impl UnwindSafe for MediaRef
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