pub struct ResourceMeta {
pub etag: String,
pub modified: DateTime<Utc>,
pub size: u64,
pub content_type: String,
pub links: Vec<String>,
}Expand description
Metadata describing a resource stored in a pod.
Fields§
§etag: StringStrong ETag (typically hex-encoded SHA-256).
modified: DateTime<Utc>Last modification time, UTC.
size: u64Size of the body in bytes.
content_type: StringMIME type, e.g. "application/ld+json".
links: Vec<String>Link header values.
Each entry is a single Link value (no outer commas), e.g.
<http://www.w3.org/ns/ldp#Resource>; rel="type".
Implementations§
Trait Implementations§
Source§impl Clone for ResourceMeta
impl Clone for ResourceMeta
Source§fn clone(&self) -> ResourceMeta
fn clone(&self) -> ResourceMeta
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 ResourceMeta
impl Debug for ResourceMeta
Source§impl<'de> Deserialize<'de> for ResourceMeta
impl<'de> Deserialize<'de> for ResourceMeta
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
Auto Trait Implementations§
impl Freeze for ResourceMeta
impl RefUnwindSafe for ResourceMeta
impl Send for ResourceMeta
impl Sync for ResourceMeta
impl Unpin for ResourceMeta
impl UnsafeUnpin for ResourceMeta
impl UnwindSafe for ResourceMeta
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