#[non_exhaustive]pub struct SpokeSummary {
pub spoke_type_counts: Vec<SpokeTypeCount>,
pub spoke_state_counts: Vec<SpokeStateCount>,
pub spoke_state_reason_counts: Vec<SpokeStateReasonCount>,
/* private fields */
}Expand description
Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.spoke_type_counts: Vec<SpokeTypeCount>Output only. Counts the number of spokes of each type that are associated with a specific hub.
spoke_state_counts: Vec<SpokeStateCount>Output only. Counts the number of spokes that are in each state and associated with a given hub.
spoke_state_reason_counts: Vec<SpokeStateReasonCount>Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
Implementations§
Source§impl SpokeSummary
impl SpokeSummary
pub fn new() -> Self
Sourcepub fn set_spoke_type_counts<T, V>(self, v: T) -> Self
pub fn set_spoke_type_counts<T, V>(self, v: T) -> Self
Sets the value of spoke_type_counts.
Sourcepub fn set_spoke_state_counts<T, V>(self, v: T) -> Self
pub fn set_spoke_state_counts<T, V>(self, v: T) -> Self
Sets the value of spoke_state_counts.
Sourcepub fn set_spoke_state_reason_counts<T, V>(self, v: T) -> Self
pub fn set_spoke_state_reason_counts<T, V>(self, v: T) -> Self
Sets the value of spoke_state_reason_counts.
Trait Implementations§
Source§impl Clone for SpokeSummary
impl Clone for SpokeSummary
Source§fn clone(&self) -> SpokeSummary
fn clone(&self) -> SpokeSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpokeSummary
impl Debug for SpokeSummary
Source§impl Default for SpokeSummary
impl Default for SpokeSummary
Source§fn default() -> SpokeSummary
fn default() -> SpokeSummary
Returns the “default value” for a type. Read more
Source§impl Message for SpokeSummary
impl Message for SpokeSummary
Source§impl PartialEq for SpokeSummary
impl PartialEq for SpokeSummary
impl StructuralPartialEq for SpokeSummary
Auto Trait Implementations§
impl Freeze for SpokeSummary
impl RefUnwindSafe for SpokeSummary
impl Send for SpokeSummary
impl Sync for SpokeSummary
impl Unpin for SpokeSummary
impl UnwindSafe for SpokeSummary
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