pub struct JsonOnlyApiFormat;Expand description
Implementation of HumusApiFormat that can handle the cases where there is only a JSON API next to the templates.
Trait Implementations§
Source§impl Clone for JsonOnlyApiFormat
impl Clone for JsonOnlyApiFormat
Source§fn clone(&self) -> JsonOnlyApiFormat
fn clone(&self) -> JsonOnlyApiFormat
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 HumusApiFormat for JsonOnlyApiFormat
impl HumusApiFormat for JsonOnlyApiFormat
Source§fn get_name(&self) -> HumusFormatIdentifier
fn get_name(&self) -> HumusFormatIdentifier
Returns the name of the format
Source§fn get_media_type(&self) -> Mime
fn get_media_type(&self) -> Mime
Returns the Mimetype that is expected for this output format.
Source§fn from_name(name: &HumusFormatIdentifier) -> Option<Self>
fn from_name(name: &HumusFormatIdentifier) -> Option<Self>
Constructs a view from its name.
Auto Trait Implementations§
impl Freeze for JsonOnlyApiFormat
impl RefUnwindSafe for JsonOnlyApiFormat
impl Send for JsonOnlyApiFormat
impl Sync for JsonOnlyApiFormat
impl Unpin for JsonOnlyApiFormat
impl UnsafeUnpin for JsonOnlyApiFormat
impl UnwindSafe for JsonOnlyApiFormat
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