Struct letterboxd::ApiKeyPair
source · pub struct ApiKeyPair { /* private fields */ }
Expand description
API key/secret pair.
Can be created explicitly, or from default environment variables
LETTERBOXD_API_KEY
and LETTERBOXD_API_SECRET
.
Implementations§
source§impl ApiKeyPair
impl ApiKeyPair
sourcepub const API_KEY_ENVVAR: &'static str = "LETTERBOXD_API_KEY"
pub const API_KEY_ENVVAR: &'static str = "LETTERBOXD_API_KEY"
Environment variable name used to get API key.
sourcepub const API_SECRET_ENVVAR: &'static str = "LETTERBOXD_API_SECRET"
pub const API_SECRET_ENVVAR: &'static str = "LETTERBOXD_API_SECRET"
Environment variable name used to get API secret.
Trait Implementations§
source§impl Clone for ApiKeyPair
impl Clone for ApiKeyPair
source§fn clone(&self) -> ApiKeyPair
fn clone(&self) -> ApiKeyPair
Returns a copy 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 ApiKeyPair
impl RefUnwindSafe for ApiKeyPair
impl Send for ApiKeyPair
impl Sync for ApiKeyPair
impl Unpin for ApiKeyPair
impl UnwindSafe for ApiKeyPair
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