pub struct CreateContext { /* private fields */ }Expand description
Replayable creation builder. Reusing it reconciles the same exact command.
Implementations§
Source§impl CreateContext
impl CreateContext
Sourcepub fn instructions(self, text: impl Into<String>) -> Self
pub fn instructions(self, text: impl Into<String>) -> Self
Append exact instruction bytes with a fresh item identity.
Sourcepub fn item(self, item: Item) -> Self
pub fn item(self, item: Item) -> Self
Add one typed item. Semantic validation belongs to the authenticated service.
Sourcepub fn identity(&self) -> Option<&RequestIdentity>
pub fn identity(&self) -> Option<&RequestIdentity>
Caller-known command identity, available before network effects.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CreateContext
impl !UnwindSafe for CreateContext
impl Freeze for CreateContext
impl Send for CreateContext
impl Sync for CreateContext
impl Unpin for CreateContext
impl UnsafeUnpin for CreateContext
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