pub struct IntentMilestone {
pub id: String,
pub resolved: bool,
pub status: Option<String>,
}Expand description
One milestone an intent names, as the plan derives it. A milestone that does not resolve is
carried with resolved: false rather than dropped, because a name that points at nothing is
a finding and not an absence.
use majordomus_cli::intent::IntentMilestone;
let named = IntentMilestone { id: "no-such".into(), resolved: false, status: None };
assert!(!named.resolved);
assert!(named.status.is_none());Fields§
§id: StringThe id the intent names.
resolved: boolWhether the plan holds a milestone with that id.
status: Option<String>The status the plan derives for it; absent when it does not resolve.
Trait Implementations§
Source§impl Clone for IntentMilestone
impl Clone for IntentMilestone
Source§fn clone(&self) -> IntentMilestone
fn clone(&self) -> IntentMilestone
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 IntentMilestone
impl Debug for IntentMilestone
Source§impl<'de> Deserialize<'de> for IntentMilestone
impl<'de> Deserialize<'de> for IntentMilestone
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 IntentMilestone
Source§impl JsonSchema for IntentMilestone
impl JsonSchema for IntentMilestone
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 IntentMilestone
impl PartialEq for IntentMilestone
Source§fn eq(&self, other: &IntentMilestone) -> bool
fn eq(&self, other: &IntentMilestone) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentMilestone
impl Serialize for IntentMilestone
impl StructuralPartialEq for IntentMilestone
Auto Trait Implementations§
impl Freeze for IntentMilestone
impl RefUnwindSafe for IntentMilestone
impl Send for IntentMilestone
impl Sync for IntentMilestone
impl Unpin for IntentMilestone
impl UnsafeUnpin for IntentMilestone
impl UnwindSafe for IntentMilestone
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.