pub struct CeremonyReasonState {
pub from: Option<CeremonyRecordRefState>,
pub to: Option<CeremonyRecordRefState>,
pub kind: String,
pub why: String,
pub confidence: String,
pub asserted_by_role_id: String,
pub asserted_at: String,
}Expand description
Everything a caller needs to decide what to do next with a working session: where it is, what blocks it, and what it has recorded. Why one thing this session produced led to another.
Asserted by a seat and read back here, so a caller that explained a session can see its own explanation. Without this the edges were write-only over the wire: a reason could be stated and never found again by anyone holding only the session.
Fields§
§from: Option<CeremonyRecordRefState>§to: Option<CeremonyRecordRefState>§kind: String“answers”, “authorizes”, “chosen_because”, “achieved_by”, “follows_from”, “satisfies_constraint”, “violates_constraint”, “supersedes” or “contradicts”.
why: StringThe reason itself, in the words of whoever asserted it.
confidence: String“high”, “medium” or “low”.
asserted_by_role_id: StringThe seat that said so. Empty when the engine asserted it on its own behalf, which is the only case with nobody to name.
asserted_at: StringTrait Implementations§
Source§impl Clone for CeremonyReasonState
impl Clone for CeremonyReasonState
Source§fn clone(&self) -> CeremonyReasonState
fn clone(&self) -> CeremonyReasonState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CeremonyReasonState
impl Debug for CeremonyReasonState
Source§impl Default for CeremonyReasonState
impl Default for CeremonyReasonState
Source§fn default() -> CeremonyReasonState
fn default() -> CeremonyReasonState
Source§impl Message for CeremonyReasonState
impl Message for CeremonyReasonState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for CeremonyReasonState
impl PartialEq for CeremonyReasonState
impl StructuralPartialEq for CeremonyReasonState
Auto Trait Implementations§
impl Freeze for CeremonyReasonState
impl RefUnwindSafe for CeremonyReasonState
impl Send for CeremonyReasonState
impl Sync for CeremonyReasonState
impl Unpin for CeremonyReasonState
impl UnsafeUnpin for CeremonyReasonState
impl UnwindSafe for CeremonyReasonState
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
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<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>
T in a tonic::Request