pub struct FormatDescription {
pub media_type: MediaType,
pub extension: String,
pub additional_templates: Vec<String>,
}Expand description
Describes a single template format that can be rendered to.
Fields§
§media_type: MediaTypeThe media type that the server should serve the output of this template as.
extension: StringThe file extension that the template files use without a leading dot.
Example: if your template file is named index.html set html here.
additional_templates: Vec<String>Full filename of additional templates to load
Trait Implementations§
Source§impl Clone for FormatDescription
impl Clone for FormatDescription
Source§fn clone(&self) -> FormatDescription
fn clone(&self) -> FormatDescription
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 FormatDescription
impl Debug for FormatDescription
Source§impl<'de> Deserialize<'de> for FormatDescription
impl<'de> Deserialize<'de> for FormatDescription
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 FormatDescription
impl RefUnwindSafe for FormatDescription
impl Send for FormatDescription
impl Sync for FormatDescription
impl Unpin for FormatDescription
impl UnsafeUnpin for FormatDescription
impl UnwindSafe for FormatDescription
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