pub struct TrustTokenParamsBuilder { /* private fields */ }Expand description
Builder for TrustTokenParams.
Implementations§
Source§impl TrustTokenParamsBuilder
impl TrustTokenParamsBuilder
pub fn operation<VALUE: Into<TrustTokenOperationType>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn refresh_policy<VALUE: Into<TrustTokenParamsRefreshPolicy>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn refresh_policy<VALUE: Into<TrustTokenParamsRefreshPolicy>>( &mut self, value: VALUE, ) -> &mut Self
Only set for “token-redemption” operation and determine whether to request a fresh SRR or use a still valid cached SRR.
Sourcepub fn issuers<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn issuers<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Origins of issuers from whom to request tokens or redemption records.
Sourcepub fn build(&self) -> Result<TrustTokenParams, TrustTokenParamsBuilderError>
pub fn build(&self) -> Result<TrustTokenParams, TrustTokenParamsBuilderError>
Trait Implementations§
Source§impl Clone for TrustTokenParamsBuilder
impl Clone for TrustTokenParamsBuilder
Source§fn clone(&self) -> TrustTokenParamsBuilder
fn clone(&self) -> TrustTokenParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for TrustTokenParamsBuilder
impl RefUnwindSafe for TrustTokenParamsBuilder
impl Send for TrustTokenParamsBuilder
impl Sync for TrustTokenParamsBuilder
impl Unpin for TrustTokenParamsBuilder
impl UnsafeUnpin for TrustTokenParamsBuilder
impl UnwindSafe for TrustTokenParamsBuilder
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