pub enum ProviderRow {
Header {
name: String,
config_count: usize,
},
Leaf {
id: ProviderConfigId,
},
}Expand description
One row in the tree-style provider list.
Variants§
Header
Provider group header. config_count 0 = unconfigured, 1 = single
config (bare or labeled), 2+ = group that can be expanded.
Leaf
One labeled config under an expanded header.
Fields
Implementations§
Source§impl ProviderRow
impl ProviderRow
pub fn provider_name(&self) -> &str
Trait Implementations§
Source§impl Clone for ProviderRow
impl Clone for ProviderRow
Source§fn clone(&self) -> ProviderRow
fn clone(&self) -> ProviderRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderRow
impl RefUnwindSafe for ProviderRow
impl Send for ProviderRow
impl Sync for ProviderRow
impl Unpin for ProviderRow
impl UnsafeUnpin for ProviderRow
impl UnwindSafe for ProviderRow
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more