pub struct TextLinkChip {
pub kind: String,
pub label: String,
pub icon: Option<String>,
pub ident: Option<String>,
}Expand description
#VAPP-258: a text link’s inline chip: kind in
super::contract::MARKDOWN_CHIP_KINDS (the host’s meaning, one look),
a non-empty label, an optional icon registry name and ident.
Fields§
§kind: String§label: String§icon: Option<String>§ident: Option<String>#VAPP-258: an identifier (ABC-1) painted mono before the label
(an empty one is none).
Implementations§
Trait Implementations§
Source§impl Clone for TextLinkChip
impl Clone for TextLinkChip
Source§impl Debug for TextLinkChip
impl Debug for TextLinkChip
Source§impl Default for TextLinkChip
impl Default for TextLinkChip
Source§impl<'de> Deserialize<'de> for TextLinkChip
impl<'de> Deserialize<'de> for TextLinkChip
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 TextLinkChip
Source§impl PartialEq for TextLinkChip
impl PartialEq for TextLinkChip
Source§impl Serialize for TextLinkChip
impl Serialize for TextLinkChip
impl StructuralPartialEq for TextLinkChip
Auto Trait Implementations§
impl Forget for TextLinkChip
impl Freeze for TextLinkChip
impl RefUnwindSafe for TextLinkChip
impl Send for TextLinkChip
impl Sync for TextLinkChip
impl Unpin for TextLinkChip
impl UnsafeUnpin for TextLinkChip
impl UnwindSafe for TextLinkChip
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.