pub struct LinkObject {
pub href: String,
pub name: Option<String>,
}Expand description
LinkObject : A Link object.
Fields§
§href: StringA URI for this object.
name: Option<String>An identifier for this object.
Implementations§
Source§impl LinkObject
impl LinkObject
Sourcepub fn new(href: String) -> LinkObject
pub fn new(href: String) -> LinkObject
A Link object.
Trait Implementations§
Source§impl Clone for LinkObject
impl Clone for LinkObject
Source§fn clone(&self) -> LinkObject
fn clone(&self) -> LinkObject
Returns a duplicate of the value. Read more
1.0.0 · 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 LinkObject
impl Debug for LinkObject
Source§impl Default for LinkObject
impl Default for LinkObject
Source§fn default() -> LinkObject
fn default() -> LinkObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkObject
impl<'de> Deserialize<'de> for LinkObject
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
Source§impl PartialEq for LinkObject
impl PartialEq for LinkObject
Source§impl Serialize for LinkObject
impl Serialize for LinkObject
impl StructuralPartialEq for LinkObject
Auto Trait Implementations§
impl Freeze for LinkObject
impl RefUnwindSafe for LinkObject
impl Send for LinkObject
impl Sync for LinkObject
impl Unpin for LinkObject
impl UnwindSafe for LinkObject
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