pub struct SecretsBootstrap;Implementations§
Source§impl SecretsBootstrap
impl SecretsBootstrap
pub fn init() -> Result<&'static Secrets>
pub fn jwt_secret() -> Result<&'static str, SecretsBootstrapError>
pub fn database_url() -> Result<&'static str, SecretsBootstrapError>
pub fn get() -> Result<&'static Secrets, SecretsBootstrapError>
pub fn require() -> Result<&'static Secrets, SecretsBootstrapError>
pub fn is_initialized() -> bool
pub fn try_init() -> Result<&'static Secrets>
Trait Implementations§
Source§impl Clone for SecretsBootstrap
impl Clone for SecretsBootstrap
Source§fn clone(&self) -> SecretsBootstrap
fn clone(&self) -> SecretsBootstrap
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 moreSource§impl Debug for SecretsBootstrap
impl Debug for SecretsBootstrap
impl Copy for SecretsBootstrap
Auto Trait Implementations§
impl Freeze for SecretsBootstrap
impl RefUnwindSafe for SecretsBootstrap
impl Send for SecretsBootstrap
impl Sync for SecretsBootstrap
impl Unpin for SecretsBootstrap
impl UnwindSafe for SecretsBootstrap
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