pub struct TypstLink {
pub url: String,
pub content: Option<TypstRoot>,
}Expand description
A hyperlink in a Typst document.
Fields§
§url: StringThe URL of the link.
content: Option<TypstRoot>Optional link content (display text).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypstLink
impl<'de> Deserialize<'de> for TypstLink
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 TypstLink
impl RefUnwindSafe for TypstLink
impl Send for TypstLink
impl Sync for TypstLink
impl Unpin for TypstLink
impl UnsafeUnpin for TypstLink
impl UnwindSafe for TypstLink
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