#[non_exhaustive]pub struct ChoiceContextRequest {
pub meta: BTreeMap<String, String>,
pub exclude_debug_fields: bool,
}Expand description
A request for a choice context.
meta is passed to the choice and folded into the context by the registry;
the standard provides it for extensibility and most callers send none.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.meta: BTreeMap<String, String>Left out entirely when empty — the field is optional, and an empty object is a different thing to say than nothing.
exclude_debug_fields: boolAsk the registry to leave out the debug fields (debugPayload,
debugPackageName, debugCreatedAt on each disclosed contract).
Every choice-context request in the standard has it — V1’s
GetChoiceContextRequest as much as V2’s — and this crate reads none
of the fields it suppresses, so the default is true: bytes on the
wire for no purpose. Set it to false to see them while debugging a
registry.
Trait Implementations§
Source§impl Clone for ChoiceContextRequest
impl Clone for ChoiceContextRequest
Source§impl Debug for ChoiceContextRequest
impl Debug for ChoiceContextRequest
Source§impl Default for ChoiceContextRequest
impl Default for ChoiceContextRequest
Auto Trait Implementations§
impl Freeze for ChoiceContextRequest
impl RefUnwindSafe for ChoiceContextRequest
impl Send for ChoiceContextRequest
impl Sync for ChoiceContextRequest
impl Unpin for ChoiceContextRequest
impl UnsafeUnpin for ChoiceContextRequest
impl UnwindSafe for ChoiceContextRequest
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