pub struct Hyperlink {
pub href: String,
pub target: LinkTarget,
pub rel: Option<String>,
pub download: Option<String>,
}Expand description
Declarative hyperlink metadata understood by every shell.
This lives on semantic nodes rather than on one concrete Link widget so
application and third-party widgets can expose genuine navigation without
inheriting Fission’s visual link treatment.
Fields§
§href: StringDestination URL or logical application route.
target: LinkTargetBrowsing context in which the destination opens.
rel: Option<String>Optional HTML relationship tokens.
download: Option<String>Optional download filename; presence requests download behavior.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hyperlink
impl<'de> Deserialize<'de> for Hyperlink
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
impl Eq for Hyperlink
impl StructuralPartialEq for Hyperlink
Auto Trait Implementations§
impl Freeze for Hyperlink
impl RefUnwindSafe for Hyperlink
impl Send for Hyperlink
impl Sync for Hyperlink
impl Unpin for Hyperlink
impl UnsafeUnpin for Hyperlink
impl UnwindSafe for Hyperlink
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