pub enum IdTemplateSegment {
Literal(String),
Field(String),
}Expand description
One segment of a workflow’s id template, resolved against the
workflow input message’s descriptor at parse time.
Variants§
Literal(String)
A literal piece of the template — emitted verbatim into the
generated format!.
Field(String)
A reference to a field on the workflow input message. The string
is the Rust field name (snake_case), so generated code can
substitute input.<field> directly. Validated to exist on the
input descriptor at parse time.
Trait Implementations§
Source§impl Clone for IdTemplateSegment
impl Clone for IdTemplateSegment
Source§fn clone(&self) -> IdTemplateSegment
fn clone(&self) -> IdTemplateSegment
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 IdTemplateSegment
impl Debug for IdTemplateSegment
Source§impl PartialEq for IdTemplateSegment
impl PartialEq for IdTemplateSegment
Source§fn eq(&self, other: &IdTemplateSegment) -> bool
fn eq(&self, other: &IdTemplateSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IdTemplateSegment
impl StructuralPartialEq for IdTemplateSegment
Auto Trait Implementations§
impl Freeze for IdTemplateSegment
impl RefUnwindSafe for IdTemplateSegment
impl Send for IdTemplateSegment
impl Sync for IdTemplateSegment
impl Unpin for IdTemplateSegment
impl UnsafeUnpin for IdTemplateSegment
impl UnwindSafe for IdTemplateSegment
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