#[repr(C)]pub struct TabBadge {
pub text: String,
pub label: String,
}Expand description
A tab’s badge (ADR-0050). Both strings are finished by the core: the shells draw text as-is and add no words.
Fields§
§text: StringDrawn inside the badge. Empty = a small dot with no text.
label: StringWhat a screen reader says after the tab’s label, e.g. “3 nove poruke”. Empty = it reads text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabBadge
impl<'de> Deserialize<'de> for TabBadge
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TabBadge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TabBadge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TabBadge
Source§impl Serialize for TabBadge
impl Serialize for TabBadge
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TabBadge
Auto Trait Implementations§
impl Freeze for TabBadge
impl RefUnwindSafe for TabBadge
impl Send for TabBadge
impl Sync for TabBadge
impl Unpin for TabBadge
impl UnsafeUnpin for TabBadge
impl UnwindSafe for TabBadge
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