pub struct HiddenItemsSummary {
pub total: i32,
pub by_kind: HashMap<String, i32>,
pub items: Vec<HiddenItem>,
}Fields§
§total: i32Total number of hidden items on this side
by_kind: HashMap<String, i32>Count of hidden items keyed by item kind (always populated)
items: Vec<HiddenItem>Kind and path of each hidden item; only populated when the caller is an admin of the relevant side (empty otherwise)
Implementations§
Source§impl HiddenItemsSummary
impl HiddenItemsSummary
pub fn new( total: i32, by_kind: HashMap<String, i32>, items: Vec<HiddenItem>, ) -> HiddenItemsSummary
Trait Implementations§
Source§impl Clone for HiddenItemsSummary
impl Clone for HiddenItemsSummary
Source§fn clone(&self) -> HiddenItemsSummary
fn clone(&self) -> HiddenItemsSummary
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 moreSource§impl Debug for HiddenItemsSummary
impl Debug for HiddenItemsSummary
Source§impl Default for HiddenItemsSummary
impl Default for HiddenItemsSummary
Source§fn default() -> HiddenItemsSummary
fn default() -> HiddenItemsSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HiddenItemsSummary
impl<'de> Deserialize<'de> for HiddenItemsSummary
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
Source§impl PartialEq for HiddenItemsSummary
impl PartialEq for HiddenItemsSummary
Source§fn eq(&self, other: &HiddenItemsSummary) -> bool
fn eq(&self, other: &HiddenItemsSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HiddenItemsSummary
impl Serialize for HiddenItemsSummary
impl StructuralPartialEq for HiddenItemsSummary
Auto Trait Implementations§
impl Freeze for HiddenItemsSummary
impl RefUnwindSafe for HiddenItemsSummary
impl Send for HiddenItemsSummary
impl Sync for HiddenItemsSummary
impl Unpin for HiddenItemsSummary
impl UnsafeUnpin for HiddenItemsSummary
impl UnwindSafe for HiddenItemsSummary
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