#[non_exhaustive]pub struct ProjectedShape {
pub state: String,
pub phase: Value,
pub ownership: PhaseOwnership,
pub obligations: Vec<String>,
pub blocking: Option<RequiredCard>,
pub notices: Vec<NoticeShape>,
pub outcome: Option<Value>,
}Expand description
What one projected state looks like, reduced to the parts that are contract rather than copy.
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.state: StringThe name the caller gave this state, so a diff says which one moved.
phase: ValueThe phase, as canonical JSON.
ownership: PhaseOwnershipWho the phase says must act next.
obligations: Vec<String>Every open obligation’s stable identifier, in the order projected.
blocking: Option<RequiredCard>The blocking card the phase requires, if it requires one.
notices: Vec<NoticeShape>Notice codes and severities, without their prose.
outcome: Option<Value>The outcome, present only when the workflow is finished.
Trait Implementations§
Source§impl Clone for ProjectedShape
impl Clone for ProjectedShape
Source§impl Debug for ProjectedShape
impl Debug for ProjectedShape
Source§impl<'de> Deserialize<'de> for ProjectedShape
impl<'de> Deserialize<'de> for ProjectedShape
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 ProjectedShape
Source§impl PartialEq for ProjectedShape
impl PartialEq for ProjectedShape
Source§impl Serialize for ProjectedShape
impl Serialize for ProjectedShape
impl StructuralPartialEq for ProjectedShape
Auto Trait Implementations§
impl Freeze for ProjectedShape
impl RefUnwindSafe for ProjectedShape
impl Send for ProjectedShape
impl Sync for ProjectedShape
impl Unpin for ProjectedShape
impl UnsafeUnpin for ProjectedShape
impl UnwindSafe for ProjectedShape
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.