pub struct CommandBook {
pub cover: Option<Cover>,
pub pages: Vec<CommandPage>,
}Fields§
§cover: Option<Cover>§pages: Vec<CommandPage>Field 3 removed: correlation_id moved to Cover Field 4 removed: saga_origin moved to PageHeader.angzarr_deferred Field 5 removed: ‘fact’ was unused
Trait Implementations§
Source§impl Clone for CommandBook
impl Clone for CommandBook
Source§fn clone(&self) -> CommandBook
fn clone(&self) -> CommandBook
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandBookExt for CommandBook
impl CommandBookExt for CommandBook
Source§fn command_sequence(&self) -> u32
fn command_sequence(&self) -> u32
Get the sequence number from the first command page.
Source§fn first_command(&self) -> Option<&CommandPage>
fn first_command(&self) -> Option<&CommandPage>
Get the first command page, if any.
Source§fn merge_strategy(&self) -> MergeStrategy
fn merge_strategy(&self) -> MergeStrategy
Get the merge strategy from the first command page. Read more
Source§impl CoverExt for CommandBook
impl CoverExt for CommandBook
Source§fn domain(&self) -> &str
fn domain(&self) -> &str
Get the domain from the cover, or
UNKNOWN_DOMAIN if missing.Source§fn correlation_id(&self) -> &str
fn correlation_id(&self) -> &str
Get the correlation_id from the cover, or empty string if missing.
Source§fn root_id_hex(&self) -> Option<String>
fn root_id_hex(&self) -> Option<String>
Get the root UUID as a hex-encoded string, if present.
Source§fn has_correlation_id(&self) -> bool
fn has_correlation_id(&self) -> bool
Check if correlation_id is present and non-empty.
Source§fn edition_struct(&self) -> Option<&Edition>
fn edition_struct(&self) -> Option<&Edition>
Get the Edition struct from the cover, if present.
Source§fn edition_opt(&self) -> Option<&str>
fn edition_opt(&self) -> Option<&str>
Get the edition name as an Option, without defaulting. Read more
Source§fn routing_key(&self) -> String
fn routing_key(&self) -> String
Compute the bus routing key:
"{domain}". Read moreSource§impl Debug for CommandBook
impl Debug for CommandBook
Source§impl Default for CommandBook
impl Default for CommandBook
Source§impl Message for CommandBook
impl Message for CommandBook
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Name for CommandBook
impl Name for CommandBook
Source§const NAME: &'static str = "CommandBook"
const NAME: &'static str = "CommandBook"
Simple name for this
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "angzarr"
const PACKAGE: &'static str = "angzarr"
Package name this message type is contained in. They are domain-like
and delimited by
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for CommandBook
impl PartialEq for CommandBook
impl StructuralPartialEq for CommandBook
Auto Trait Implementations§
impl Freeze for CommandBook
impl RefUnwindSafe for CommandBook
impl Send for CommandBook
impl Sync for CommandBook
impl Unpin for CommandBook
impl UnsafeUnpin for CommandBook
impl UnwindSafe for CommandBook
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request