Struct http_halforms::Link
source · pub struct Link {
pub href: String,
pub templated: bool,
pub type: Option<String>,
pub deprecation: Option<String>,
pub name: Option<String>,
pub profile: Option<String>,
pub title: Option<String>,
pub hreflang: Option<String>,
}Expand description
Representation of a single Link in a HAL document.
Fields§
§href: String§templated: bool§type: Option<String>§deprecation: Option<String>§name: Option<String>§profile: Option<String>§title: Option<String>§hreflang: Option<String>Implementations§
source§impl Link
impl Link
sourcepub fn with_type<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_type<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the type value on the link.
sourcepub fn with_deprecation<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_deprecation<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the deprecation value on the link.
sourcepub fn with_name<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_name<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the name value on the link.
sourcepub fn with_profile<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_profile<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the profile value on the link.
sourcepub fn with_title<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_title<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the title value on the link.
sourcepub fn with_hreflang<S>(self, value: S) -> Selfwhere
S: ToString,
pub fn with_hreflang<S>(self, value: S) -> Selfwhere
S: ToString,
Specify the hreflang value on the link.