pub struct DntContext {
pub application_id: ApplicationId,
pub tenant_id: Option<TenantId>,
pub content_type: ContentType,
pub codec_id: CodecId,
pub schema_version: u32,
}Expand description
DNT context bound to key resolution and authenticated header validation.
Fields§
§application_id: ApplicationIdApplication that owns the envelope.
tenant_id: Option<TenantId>Optional tenant boundary.
content_type: ContentTypeLogical content type.
codec_id: CodecIdPayload codec identifier.
schema_version: u32Payload schema version.
Implementations§
Source§impl DntContext
impl DntContext
Sourcepub fn from_header(header: &DntHeader) -> Self
pub fn from_header(header: &DntHeader) -> Self
Creates context from an inspected header.
Trait Implementations§
Source§impl Clone for DntContext
impl Clone for DntContext
Source§fn clone(&self) -> DntContext
fn clone(&self) -> DntContext
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 DntContext
impl Debug for DntContext
impl Eq for DntContext
Source§impl PartialEq for DntContext
impl PartialEq for DntContext
impl StructuralPartialEq for DntContext
Auto Trait Implementations§
impl Freeze for DntContext
impl RefUnwindSafe for DntContext
impl Send for DntContext
impl Sync for DntContext
impl Unpin for DntContext
impl UnsafeUnpin for DntContext
impl UnwindSafe for DntContext
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