pub struct SignerOptions {
pub client_id: String,
pub signing_secret: String,
pub clock: Option<Arc<dyn Fn() -> SystemTime + Send + Sync>>,
}Expand description
Configures a Signer.
The options hold the signing secret, so Debug shows them as redacted.
Fields§
§client_id: StringYour application’s client id. It must not be empty and must not contain a colon, CR or LF.
signing_secret: StringYour application’s signing secret. It must not be empty. Keep it on trusted servers only.
clock: Option<Arc<dyn Fn() -> SystemTime + Send + Sync>>Gives the time at which credentials are signed. None uses
SystemTime::now.
Trait Implementations§
Source§impl Clone for SignerOptions
impl Clone for SignerOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SignerOptions
impl !UnwindSafe for SignerOptions
impl Freeze for SignerOptions
impl Send for SignerOptions
impl Sync for SignerOptions
impl Unpin for SignerOptions
impl UnsafeUnpin for SignerOptions
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