#[non_exhaustive]pub struct SkillCounts {
pub all: i64,
pub mine: i64,
pub team: i64,
}Expand description
The tab counts for the current search: all matching, authored by the caller (mine), and everyone else’s (team = all - mine).
Models the contract’s skillCountsResp schema.
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.all: i64The contract’s all.
mine: i64The contract’s mine.
team: i64The contract’s team.
Trait Implementations§
Source§impl Clone for SkillCounts
impl Clone for SkillCounts
Source§fn clone(&self) -> SkillCounts
fn clone(&self) -> SkillCounts
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 ContractModel for SkillCounts
impl ContractModel for SkillCounts
Source§impl Debug for SkillCounts
impl Debug for SkillCounts
Source§impl Default for SkillCounts
impl Default for SkillCounts
Source§fn default() -> SkillCounts
fn default() -> SkillCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillCountswhere
SkillCounts: Default,
impl<'de> Deserialize<'de> for SkillCountswhere
SkillCounts: Default,
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 SkillCounts
impl PartialEq for SkillCounts
Source§impl Serialize for SkillCounts
impl Serialize for SkillCounts
impl StructuralPartialEq for SkillCounts
Auto Trait Implementations§
impl Freeze for SkillCounts
impl RefUnwindSafe for SkillCounts
impl Send for SkillCounts
impl Sync for SkillCounts
impl Unpin for SkillCounts
impl UnsafeUnpin for SkillCounts
impl UnwindSafe for SkillCounts
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