pub struct BrowserRequestBinding {Show 16 fields
pub version: String,
pub service_name: String,
pub service_did: String,
pub service_origin: String,
pub webtransport_url: String,
pub certificate_hashes: Vec<String>,
pub capability: String,
pub scope: String,
pub carrier_profile: BrowserCarrierProfile,
pub response_key_id: String,
pub response_key_digest: String,
pub request_kem_key_id: String,
pub request_kem_digest: String,
pub accepted_state_digest: String,
pub accepted_state_epoch: u64,
pub expires_at_unix_ms: i64,
}Expand description
Accepted-state evidence copied into the signed and HyKEM-sealed request. Dispatch verifies it against the live checkpoint source before handler work.
Fields§
§version: String§service_name: String§service_did: String§service_origin: String§webtransport_url: String§certificate_hashes: Vec<String>§capability: String§scope: String§carrier_profile: BrowserCarrierProfile§response_key_id: String§response_key_digest: String§request_kem_key_id: String§request_kem_digest: String§accepted_state_digest: String§accepted_state_epoch: u64§expires_at_unix_ms: i64Implementations§
Source§impl BrowserRequestBinding
impl BrowserRequestBinding
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn to_bytes(&self) -> Result<Vec<u8>>
pub fn validate_shape(&self) -> Result<()>
pub fn accepted_state_digest_bytes(&self) -> Result<[u8; 64]>
pub fn response_key_digest_bytes(&self) -> Result<[u8; 32]>
pub fn request_kem_digest_bytes(&self) -> Result<[u8; 32]>
pub fn matches_response_key(&self, key: &[u8]) -> Result<bool>
pub fn matches_request_kem(&self, recipient: &[u8]) -> Result<bool>
Trait Implementations§
Source§impl Clone for BrowserRequestBinding
impl Clone for BrowserRequestBinding
Source§fn clone(&self) -> BrowserRequestBinding
fn clone(&self) -> BrowserRequestBinding
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 BrowserRequestBinding
impl Debug for BrowserRequestBinding
Source§impl<'de> Deserialize<'de> for BrowserRequestBinding
impl<'de> Deserialize<'de> for BrowserRequestBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BrowserRequestBinding
impl PartialEq for BrowserRequestBinding
Source§fn eq(&self, other: &BrowserRequestBinding) -> bool
fn eq(&self, other: &BrowserRequestBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BrowserRequestBinding
impl Serialize for BrowserRequestBinding
impl Eq for BrowserRequestBinding
impl StructuralPartialEq for BrowserRequestBinding
Auto Trait Implementations§
impl Freeze for BrowserRequestBinding
impl RefUnwindSafe for BrowserRequestBinding
impl Send for BrowserRequestBinding
impl Sync for BrowserRequestBinding
impl Unpin for BrowserRequestBinding
impl UnsafeUnpin for BrowserRequestBinding
impl UnwindSafe for BrowserRequestBinding
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more