pub struct View {
pub mime: String,
pub language: Option<String>,
pub size: Option<String>,
}Expand description
One entry of a +VIEWS block: an alternate representation of an item.
Fields§
§mime: StringThe representation’s MIME type, e.g. text/plain.
language: Option<String>The RFC 1766 language tag when the view names one, e.g. De_DE.
size: Option<String>The size as the server wrote it, e.g. <10k>. Kept verbatim because
the spec’s sizes are explicitly approximate.
Trait Implementations§
impl Eq for View
impl StructuralPartialEq for View
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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