pub struct LinkOptions {
pub nofollow_external: bool,
pub open_external_blank: bool,
}
Expand description
Configuration options for links
Fields§
§nofollow_external: bool
Whether to add rel=“nofollow” to external links
open_external_blank: bool
Whether to add target=“_blank” to external links
Trait Implementations§
Source§impl Clone for LinkOptions
impl Clone for LinkOptions
Source§fn clone(&self) -> LinkOptions
fn clone(&self) -> LinkOptions
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 LinkOptions
impl Debug for LinkOptions
Source§impl<'de> Deserialize<'de> for LinkOptions
impl<'de> Deserialize<'de> for LinkOptions
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
Auto Trait Implementations§
impl Freeze for LinkOptions
impl RefUnwindSafe for LinkOptions
impl Send for LinkOptions
impl Sync for LinkOptions
impl Unpin for LinkOptions
impl UnwindSafe for LinkOptions
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