pub struct CallContext {
pub tenant: String,
pub service: CallerService,
pub auth: Option<Value>,
pub deadline_ms: u64,
}Expand description
Who calls, and until when the caller waits.
Fields§
§tenant: String§service: CallerService§auth: Option<Value>The verified claims of the caller’s principal, as the calling handler sees them; never a token.
deadline_ms: u64Milliseconds since the Unix epoch after which nobody waits for the reply.
Trait Implementations§
Source§impl CallDeadline for CallContext
impl CallDeadline for CallContext
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
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 CallContext
impl Debug for CallContext
Source§impl<'de> Deserialize<'de> for CallContext
impl<'de> Deserialize<'de> for CallContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CallContext
impl PartialEq for CallContext
Source§impl Serialize for CallContext
impl Serialize for CallContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CallContext
Auto Trait Implementations§
impl Freeze for CallContext
impl RefUnwindSafe for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
impl UnwindSafe for CallContext
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