pub struct PlanShown {
pub plan: Plan,
pub position: u64,
pub set_ms: u64,
pub seen_ms: Option<u64>,
pub stale: bool,
pub holders: BTreeMap<String, SessionUri>,
}Expand description
The plan of one repository thread on the server, with its age.
Fields§
§plan: Plan§position: u64The position of the plan_set record of the plan: the base of
the next plan.
set_ms: u64The time of the plan_set record, in milliseconds since the Unix
epoch.
seen_ms: Option<u64>The time of the last plan or plan_seen, in milliseconds since
the Unix epoch. None when no look came since the start of the
server.
stale: boolTrue when no look came for PLAN_TTL (01M4A4Z1QTHYXZDMCP9DZ39WVT).
holders: BTreeMap<String, SessionUri>The session that holds a claim of each item of the plan with a claim.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanShown
impl<'de> Deserialize<'de> for PlanShown
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 JsonSchema for PlanShown
impl JsonSchema for PlanShown
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 moreimpl Eq for PlanShown
impl StructuralPartialEq for PlanShown
Auto Trait Implementations§
impl Freeze for PlanShown
impl RefUnwindSafe for PlanShown
impl Send for PlanShown
impl Sync for PlanShown
impl Unpin for PlanShown
impl UnsafeUnpin for PlanShown
impl UnwindSafe for PlanShown
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,
§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.