pub struct NavLink {
pub img: Option<String>,
pub label: Option<String>,
pub alt: Option<String>,
pub href: Option<String>,
pub class: Option<String>,
pub target: Option<String>,
}Expand description
A single link in the navigation bar
Fields§
§img: Option<String>§label: Option<String>§alt: Option<String>§href: Option<String>§class: Option<String>Deprecated: prefer to set class on the element key (i.e. ddoc-link.class)
target: Option<String>Trait Implementations§
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§fn from(map: IndexMap<AttributeKey, AttributeValue>) -> Self
fn from(map: IndexMap<AttributeKey, AttributeValue>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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