pub struct SecurityBuilder { /* private fields */ }
Expand description
Builder for Security
.
Implementations§
Source§impl SecurityBuilder
impl SecurityBuilder
Sourcepub fn project_id(self, value: u64) -> Self
pub fn project_id(self, value: u64) -> Self
Device’s project ID
Sourcepub fn fetcher(self, value: Box<dyn SecurityFetcher + Send + Sync>) -> Self
pub fn fetcher(self, value: Box<dyn SecurityFetcher + Send + Sync>) -> Self
Device’s private key
Sourcepub fn expiration(self, value: Duration) -> Self
pub fn expiration(self, value: Duration) -> Self
Token’s expiration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecurityBuilder
impl !RefUnwindSafe for SecurityBuilder
impl Send for SecurityBuilder
impl Sync for SecurityBuilder
impl Unpin for SecurityBuilder
impl !UnwindSafe for SecurityBuilder
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