Struct actyx_sdk::Tag [−][src]
pub struct Tag(_);
Expand description
A Tag that semantically characterises an event.
Tags are non-empty unicode strings in NFC representation (i.e. normalized by canonical decomposition
followed by composition). Thus, ℌ
and H
are different tags while the various encodings of é
are
all represented by the codepoint E9.
Implementations
Trait Implementations
Write any additional information about &self
beyond its binary representation. Read more
Concatenate another part to this tag
let user_tag = tag!("user:") + "Bob"; let machine_tag = tag!("machine:") + format!("{}-{}", "thing", 42); assert_eq!(user_tag, tag!("user:Bob")); assert_eq!(machine_tag, tag!("machine:thing-42"));
This will never panic because the initial tag is already proven to be a valid tag.
Performs the +=
operation. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Creates a value from an iterator. Read more
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl UnwindSafe for Tag
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.