pub struct LinkNode {
pub url: String,
pub title: Option<String>,
pub children: Vec<Node>,
pub position: Position,
}Expand description
A link node with URL and optional title.
Fields§
§url: String§title: Option<String>§children: Vec<Node>§position: PositionTrait Implementations§
Source§impl<'de> Deserialize<'de> for LinkNode
impl<'de> Deserialize<'de> for LinkNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinkNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinkNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LinkNode
impl Serialize for LinkNode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LinkNode
Auto Trait Implementations§
impl Freeze for LinkNode
impl RefUnwindSafe for LinkNode
impl Send for LinkNode
impl Sync for LinkNode
impl Unpin for LinkNode
impl UnsafeUnpin for LinkNode
impl UnwindSafe for LinkNode
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