pub struct Tab {
pub label: String,
pub badge: Option<String>,
pub active: bool,
pub errored: bool,
pub keys: Vec<String>,
}Expand description
One tab of a Tabs block.
Fields§
§label: StringThe trigger’s text, without its badge.
badge: Option<String>The text of the trigger’s badge, if it shows one.
active: boolWhether the page opens on this tab: its trigger is selected and its panel shows.
errored: boolWhether the trigger marks a field error in the tab.
keys: Vec<String>The keys the controls in the tab’s panel post, in document order, each once.
Trait Implementations§
impl Eq for Tab
impl StructuralPartialEq for Tab
Auto Trait Implementations§
impl Forget for Tab
impl Freeze for Tab
impl Move for Tab
impl RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnsafeUnpin for Tab
impl UnwindSafe for Tab
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.