pub struct TrustTokenParams<'a> { /* private fields */ }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<'a> TrustTokenParams<'a>
impl<'a> TrustTokenParams<'a>
Sourcepub fn builder(
operation: impl Into<TrustTokenOperationType>,
refresh_policy: impl Into<Cow<'a, str>>,
) -> TrustTokenParamsBuilder<'a>
pub fn builder( operation: impl Into<TrustTokenOperationType>, refresh_policy: impl Into<Cow<'a, str>>, ) -> TrustTokenParamsBuilder<'a>
Creates a builder for this type with the required parameters:
operation:refresh_policy: Only set for “token-redemption” operation and determine whether to request a fresh SRR or use a still valid cached SRR.
pub fn operation(&self) -> &TrustTokenOperationType
Sourcepub fn refresh_policy(&self) -> &str
pub fn refresh_policy(&self) -> &str
Only set for “token-redemption” operation and determine whether to request a fresh SRR or use a still valid cached SRR.
Trait Implementations§
Source§impl<'a> Clone for TrustTokenParams<'a>
impl<'a> Clone for TrustTokenParams<'a>
Source§fn clone(&self) -> TrustTokenParams<'a>
fn clone(&self) -> TrustTokenParams<'a>
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<'a> Debug for TrustTokenParams<'a>
impl<'a> Debug for TrustTokenParams<'a>
Source§impl<'a> Default for TrustTokenParams<'a>
impl<'a> Default for TrustTokenParams<'a>
Source§fn default() -> TrustTokenParams<'a>
fn default() -> TrustTokenParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for TrustTokenParams<'a>
impl<'de, 'a> Deserialize<'de> for TrustTokenParams<'a>
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<'a> Freeze for TrustTokenParams<'a>
impl<'a> RefUnwindSafe for TrustTokenParams<'a>
impl<'a> Send for TrustTokenParams<'a>
impl<'a> Sync for TrustTokenParams<'a>
impl<'a> Unpin for TrustTokenParams<'a>
impl<'a> UnsafeUnpin for TrustTokenParams<'a>
impl<'a> UnwindSafe for TrustTokenParams<'a>
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