pub struct ResourceMetadata {
pub media_type: Option<String>,
pub modality: Modality,
pub size_bytes: u64,
pub modified_ns: Option<i64>,
pub content_hash: String,
}Expand description
Facts about a resource at the time it was embedded.
Fields§
§media_type: Option<String>Persisted dispatch hint; never guessed from the resource URI on extraction.
modality: Modality§size_bytes: u64§modified_ns: Option<i64>Modification time in nanoseconds since the Unix epoch, when available.
content_hash: StringBLAKE3 hash of the full resource content, hex encoded.
Trait Implementations§
Source§impl Clone for ResourceMetadata
impl Clone for ResourceMetadata
Source§impl Debug for ResourceMetadata
impl Debug for ResourceMetadata
Source§impl<'de> Deserialize<'de> for ResourceMetadata
impl<'de> Deserialize<'de> for ResourceMetadata
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 ResourceMetadata
Source§impl PartialEq for ResourceMetadata
impl PartialEq for ResourceMetadata
Source§impl Serialize for ResourceMetadata
impl Serialize for ResourceMetadata
impl StructuralPartialEq for ResourceMetadata
Auto Trait Implementations§
impl Freeze for ResourceMetadata
impl RefUnwindSafe for ResourceMetadata
impl Send for ResourceMetadata
impl Sync for ResourceMetadata
impl Unpin for ResourceMetadata
impl UnsafeUnpin for ResourceMetadata
impl UnwindSafe for ResourceMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.