pub struct BrowserProvisioningDocument {Show 24 fields
pub version: String,
pub service_name: String,
pub service_did: String,
pub service_origin: String,
pub webtransport_url: String,
pub capability: String,
pub scope: String,
pub carrier_profile: BrowserCarrierProfile,
pub route_role: BrowserRouteRole,
pub transport_security: BrowserTransportSecurity,
pub response_key_id: String,
pub response_ed25519: String,
pub response_ml_dsa65: String,
pub request_kem_key_id: String,
pub request_kem_recipient: String,
pub accepted_state_digest: String,
pub accepted_state_epoch: u64,
pub expires_at_unix_ms: i64,
pub certificate_hashes: Vec<String>,
pub application_hybrid_required: bool,
pub encrypted_objects_required: bool,
pub projection_signer_ed25519: String,
pub projection_signer_ml_dsa65: String,
pub projection_signature: String,
}Expand description
JSON document returned by the production provisioning endpoint.
Byte strings use canonical unpadded base64url. Deserialization rejects duplicate and unknown fields through Serde’s struct visitor.
Fields§
§version: String§service_name: String§service_did: String§service_origin: String§webtransport_url: String§capability: String§scope: String§carrier_profile: BrowserCarrierProfile§route_role: BrowserRouteRole§transport_security: BrowserTransportSecurity§response_key_id: String§response_ed25519: String§response_ml_dsa65: String§request_kem_key_id: String§request_kem_recipient: String§accepted_state_digest: String§accepted_state_epoch: u64§expires_at_unix_ms: i64§certificate_hashes: Vec<String>§application_hybrid_required: bool§encrypted_objects_required: bool§projection_signer_ed25519: String§projection_signer_ml_dsa65: String§projection_signature: StringImplementations§
Source§impl BrowserProvisioningDocument
impl BrowserProvisioningDocument
pub fn from_material(material: BrowserProvisioningMaterial) -> Self
Sourcepub fn sign_projection(self, signing_key: &SigningKey) -> Result<Self>
pub fn sign_projection(self, signing_key: &SigningKey) -> Result<Self>
Hybrid-sign the complete projection. This signature protects the HTTP representation and cache boundary; it is not accepted-state authority.
Sourcepub fn sign_projection_for_https_origin(
self,
signing_key: &SigningKey,
) -> Result<Self>
pub fn sign_projection_for_https_origin( self, signing_key: &SigningKey, ) -> Result<Self>
Sign a projection served only by an authenticated HTTPS origin. The origin’s signing key need not be the target Registry/Model response key; accepted-current service keys are independently carried in the document. Consumers may accept this form only after the same-origin Web-PKI fetch.
Trait Implementations§
Source§impl Clone for BrowserProvisioningDocument
impl Clone for BrowserProvisioningDocument
Source§fn clone(&self) -> BrowserProvisioningDocument
fn clone(&self) -> BrowserProvisioningDocument
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 BrowserProvisioningDocument
impl Debug for BrowserProvisioningDocument
Source§impl<'de> Deserialize<'de> for BrowserProvisioningDocument
impl<'de> Deserialize<'de> for BrowserProvisioningDocument
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 BrowserProvisioningDocument
impl PartialEq for BrowserProvisioningDocument
Source§fn eq(&self, other: &BrowserProvisioningDocument) -> bool
fn eq(&self, other: &BrowserProvisioningDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BrowserProvisioningDocument
impl StructuralPartialEq for BrowserProvisioningDocument
Auto Trait Implementations§
impl Freeze for BrowserProvisioningDocument
impl RefUnwindSafe for BrowserProvisioningDocument
impl Send for BrowserProvisioningDocument
impl Sync for BrowserProvisioningDocument
impl Unpin for BrowserProvisioningDocument
impl UnsafeUnpin for BrowserProvisioningDocument
impl UnwindSafe for BrowserProvisioningDocument
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