pub struct TrustTokenParams { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security and experimental only.Expand description
Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
Implementations§
Source§impl TrustTokenParams
impl TrustTokenParams
pub fn new( type: JsonValue, refresh_policy: TrustTokenParamsRefreshPolicy, issuers: Option<Vec<String>>, ) -> Self
pub fn type(&self) -> &JsonValue
Sourcepub fn refresh_policy(&self) -> &TrustTokenParamsRefreshPolicy
pub fn refresh_policy(&self) -> &TrustTokenParamsRefreshPolicy
Only set for “token-redemption” type and determine whether to request a fresh SRR or use a still valid cached SRR.
Trait Implementations§
Source§impl Clone for TrustTokenParams
impl Clone for TrustTokenParams
Source§fn clone(&self) -> TrustTokenParams
fn clone(&self) -> TrustTokenParams
Returns a duplicate of the value. Read more
1.0.0 · 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 TrustTokenParams
impl Debug for TrustTokenParams
Source§impl<'de> Deserialize<'de> for TrustTokenParams
impl<'de> Deserialize<'de> for TrustTokenParams
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
Auto Trait Implementations§
impl Freeze for TrustTokenParams
impl RefUnwindSafe for TrustTokenParams
impl Send for TrustTokenParams
impl Sync for TrustTokenParams
impl Unpin for TrustTokenParams
impl UnwindSafe for TrustTokenParams
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