pub struct ApiContext {
pub api_key: String,
pub environment: Environment,
pub installation_context: InstallationContext,
pub session_context: SessionContext,
}Fields§
§api_key: String§environment: Environment§installation_context: InstallationContext§session_context: SessionContextImplementations§
Source§impl ApiContext
impl ApiContext
Sourcepub fn with_session_context(self, session_context: SessionContext) -> Self
pub fn with_session_context(self, session_context: SessionContext) -> Self
Create a new instance of the api context with a session context Necessary when they expire
use bunqyy::api_context::ApiContext;
let mut api_context: ApiContext;
// resolve a new session context
api_context = api_context.with_session_context(new_session_context);Trait Implementations§
Source§impl Clone for ApiContext
impl Clone for ApiContext
Source§fn clone(&self) -> ApiContext
fn clone(&self) -> ApiContext
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 ApiContext
impl Debug for ApiContext
Source§impl<'de> Deserialize<'de> for ApiContext
impl<'de> Deserialize<'de> for ApiContext
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 ApiContext
impl RefUnwindSafe for ApiContext
impl Send for ApiContext
impl Sync for ApiContext
impl Unpin for ApiContext
impl UnwindSafe for ApiContext
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