pub struct ClaimCounts {
pub held: usize,
pub conflicted: usize,
pub released: usize,
pub expired: usize,
}Expand description
Claims by standing: held, conflicted, released and expired. Held and conflicted are live; the other two are history, counted rather than listed.
use majordomus_cli::mesh::page::ClaimCounts;
let counts = ClaimCounts { held: 2, released: 5, ..ClaimCounts::default() };
assert_eq!(serde_json::to_value(&counts).unwrap()["released"], 5);Fields§
§held: usizeLive and, for an exclusive claim, the winner of its scope.
conflicted: usizeLive, exclusive, and beaten to its scope.
released: usizeReleased by the holder.
expired: usizeEnded without a release.
Trait Implementations§
Source§impl Clone for ClaimCounts
impl Clone for ClaimCounts
Source§fn clone(&self) -> ClaimCounts
fn clone(&self) -> ClaimCounts
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 ClaimCounts
impl Debug for ClaimCounts
Source§impl Default for ClaimCounts
impl Default for ClaimCounts
Source§fn default() -> ClaimCounts
fn default() -> ClaimCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClaimCounts
impl<'de> Deserialize<'de> for ClaimCounts
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
impl Eq for ClaimCounts
Source§impl JsonSchema for ClaimCounts
impl JsonSchema for ClaimCounts
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ClaimCounts
impl PartialEq for ClaimCounts
Source§fn eq(&self, other: &ClaimCounts) -> bool
fn eq(&self, other: &ClaimCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClaimCounts
impl Serialize for ClaimCounts
impl StructuralPartialEq for ClaimCounts
Auto Trait Implementations§
impl Freeze for ClaimCounts
impl RefUnwindSafe for ClaimCounts
impl Send for ClaimCounts
impl Sync for ClaimCounts
impl Unpin for ClaimCounts
impl UnsafeUnpin for ClaimCounts
impl UnwindSafe for ClaimCounts
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.