pub struct DefinitionRevision(/* private fields */);Expand description
The content revision of one workflow definition.
The digest identifies what was compiled. It says nothing about how it is compiled or executed, which is why it is a distinct type from both semantics lines rather than a string that could be passed as either.
Implementations§
Source§impl DefinitionRevision
impl DefinitionRevision
Sourcepub fn of(
definition: &WorkflowDefinition,
) -> Result<DefinitionRevision, PlanInputError>
pub fn of( definition: &WorkflowDefinition, ) -> Result<DefinitionRevision, PlanInputError>
Digest one definition’s canonical encoding.
Sourcepub fn from_wire(value: &str) -> Result<DefinitionRevision, PlanInputError>
pub fn from_wire(value: &str) -> Result<DefinitionRevision, PlanInputError>
Type a recorded digest.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for DefinitionRevision
impl Clone for DefinitionRevision
Source§fn clone(&self) -> DefinitionRevision
fn clone(&self) -> DefinitionRevision
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 DefinitionRevision
impl Debug for DefinitionRevision
Source§impl<'de> Deserialize<'de> for DefinitionRevision
impl<'de> Deserialize<'de> for DefinitionRevision
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DefinitionRevision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DefinitionRevision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DefinitionRevision
Source§impl Hash for DefinitionRevision
impl Hash for DefinitionRevision
Source§impl Ord for DefinitionRevision
impl Ord for DefinitionRevision
Source§fn cmp(&self, other: &DefinitionRevision) -> Ordering
fn cmp(&self, other: &DefinitionRevision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DefinitionRevision
impl PartialEq for DefinitionRevision
Source§impl PartialOrd for DefinitionRevision
impl PartialOrd for DefinitionRevision
Source§impl Serialize for DefinitionRevision
impl Serialize for DefinitionRevision
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DefinitionRevision
Source§impl TryFrom<String> for DefinitionRevision
impl TryFrom<String> for DefinitionRevision
Source§type Error = PlanInputError
type Error = PlanInputError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<DefinitionRevision, <DefinitionRevision as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<DefinitionRevision, <DefinitionRevision as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Forget for DefinitionRevision
impl Freeze for DefinitionRevision
impl Move for DefinitionRevision
impl RefUnwindSafe for DefinitionRevision
impl Send for DefinitionRevision
impl Sync for DefinitionRevision
impl Unpin for DefinitionRevision
impl UnsafeUnpin for DefinitionRevision
impl UnwindSafe for DefinitionRevision
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.