pub struct PlanReply {
pub plan: Option<PlanShown>,
pub holds: BTreeMap<String, HoldInfo>,
}Expand description
The plan of the server for one repository thread
(01M4A4Z1NKPDBXV2PRZCG86G6A): the reply of plan, plan_seen and
the query plan.
use riff_core::wire::PlanReply;
// A thread with no plan and no hold.
assert_eq!(serde_json::to_string(&PlanReply::default()).unwrap(), "{}");Fields§
§plan: Option<PlanShown>The plan. None when the plan of the thread is off.
holds: BTreeMap<String, HoldInfo>Each hold of the thread, by its item: also of an item that is not in the plan.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanReply
impl<'de> Deserialize<'de> for PlanReply
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 PlanReply
impl JsonSchema for PlanReply
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 PlanReply
impl StructuralPartialEq for PlanReply
Auto Trait Implementations§
impl Freeze for PlanReply
impl RefUnwindSafe for PlanReply
impl Send for PlanReply
impl Sync for PlanReply
impl Unpin for PlanReply
impl UnsafeUnpin for PlanReply
impl UnwindSafe for PlanReply
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.