pub struct Template {
pub content_type: Option<String>,
pub method: Option<String>,
pub target: Option<String>,
pub title: Option<String>,
pub properties: Vec<TemplateProperty>,
}Expand description
Representation of a single Template in a HAL-FORMS document.
Fields§
§content_type: Option<String>§method: Option<String>§target: Option<String>§title: Option<String>§properties: Vec<TemplateProperty>Implementations§
Source§impl Template
impl Template
pub fn with_content_type<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_method<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_target<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_title<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_property<P>(self, value: P) -> Selfwhere
P: Into<TemplateProperty>,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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