pub struct Settings {
pub url: String,
pub project_id: String,
pub max_validity_secs: Option<u64>,
pub time_tolerance_secs: Option<u64>,
pub accept_future: Option<bool>,
pub bearer_pubkey: Option<String>,
}Fields§
§url: StringThe URL to retrieve rotating jwks from Firebase
project_id: StringFirebase project number
max_validity_secs: Option<u64>The maximum amount of time in seconds after a token has expired to allow a token to verify
time_tolerance_secs: Option<u64>How much clock in seconds to tolerate when verifying token timestamps; default 15 min
accept_future: Option<bool>Accepts tokens in the future
bearer_pubkey: Option<String>Bypass Firebase Token with self-issued JWT bearer tokens The base58-encoded address of, or the path to, the PEM-encoded Ed2559 public signing key
Implementations§
Source§impl Settings
impl Settings
pub fn max_validity(&self) -> Option<Duration>
pub fn time_tolerance(&self) -> Option<Duration>
pub fn bearer_pubkey(&self) -> Option<Result<Ed25519PublicKey, Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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