pub struct ParticipantArtifactId(/* private fields */);Expand description
The stable identity of a reusable compiled participant artifact.
The artifact id is the compile-time role identity embedded in the binary.
Multiple ParticipantId instance records may point at the same artifact
when one executable is mounted more than once in a runtime topology.
Implementations§
Source§impl ParticipantArtifactId
impl ParticipantArtifactId
Sourcepub fn new(
value: impl Into<String>,
) -> Result<ParticipantArtifactId, ParticipantArtifactIdError>
pub fn new( value: impl Into<String>, ) -> Result<ParticipantArtifactId, ParticipantArtifactIdError>
Validate and construct an artifact id.
Trait Implementations§
Source§impl AsRef<str> for ParticipantArtifactId
impl AsRef<str> for ParticipantArtifactId
Source§impl Clone for ParticipantArtifactId
impl Clone for ParticipantArtifactId
Source§fn clone(&self) -> ParticipantArtifactId
fn clone(&self) -> ParticipantArtifactId
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 ParticipantArtifactId
impl Debug for ParticipantArtifactId
Source§impl DescribeWire for ParticipantArtifactId
impl DescribeWire for ParticipantArtifactId
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for ParticipantArtifactId
impl<'de> Deserialize<'de> for ParticipantArtifactId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ParticipantArtifactId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ParticipantArtifactId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ParticipantArtifactId
impl Display for ParticipantArtifactId
impl Eq for ParticipantArtifactId
Source§impl FromStr for ParticipantArtifactId
impl FromStr for ParticipantArtifactId
Source§type Err = ParticipantArtifactIdError
type Err = ParticipantArtifactIdError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ParticipantArtifactId, <ParticipantArtifactId as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ParticipantArtifactId, <ParticipantArtifactId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ParticipantArtifactId
impl Hash for ParticipantArtifactId
Source§impl Ord for ParticipantArtifactId
impl Ord for ParticipantArtifactId
Source§fn cmp(&self, other: &ParticipantArtifactId) -> Ordering
fn cmp(&self, other: &ParticipantArtifactId) -> 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
Source§impl PartialEq for ParticipantArtifactId
impl PartialEq for ParticipantArtifactId
Source§impl PartialOrd for ParticipantArtifactId
impl PartialOrd for ParticipantArtifactId
Source§impl Serialize for ParticipantArtifactId
impl Serialize for ParticipantArtifactId
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 ParticipantArtifactId
Source§impl TryFrom<String> for ParticipantArtifactId
impl TryFrom<String> for ParticipantArtifactId
Source§type Error = ParticipantArtifactIdError
type Error = ParticipantArtifactIdError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<ParticipantArtifactId, <ParticipantArtifactId as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<ParticipantArtifactId, <ParticipantArtifactId as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ParticipantArtifactId
impl RefUnwindSafe for ParticipantArtifactId
impl Send for ParticipantArtifactId
impl Sync for ParticipantArtifactId
impl Unpin for ParticipantArtifactId
impl UnsafeUnpin for ParticipantArtifactId
impl UnwindSafe for ParticipantArtifactId
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.