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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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