pub struct FundamentumApi<'a, V: ApiVersion, H: HttpHandler> { /* private fields */ }
Expand description
User facing structure to make calls to the Fundamentum API.
This may be used within a user application to register a device, provision it, and other actions available via the Fundamentum API (swagger).
Implementations§
Source§impl<'a, H: HttpHandler> FundamentumApi<'a, V3, H>
impl<'a, H: HttpHandler> FundamentumApi<'a, V3, H>
Sourcepub fn new(config: HttpClientConfig<'a>, http_handler: H) -> Self
pub fn new(config: HttpClientConfig<'a>, http_handler: H) -> Self
Create a new structure to access Fundamentum’s API with a type safe interface.
Sourcepub const fn provisioning_api(&self) -> ProvisioningApi<'_, V3, H>
pub const fn provisioning_api(&self) -> ProvisioningApi<'_, V3, H>
Get the Provisioning API.
Sourcepub const fn get_http_client(&self) -> &HttpClient<'a, V3, H>
pub const fn get_http_client(&self) -> &HttpClient<'a, V3, H>
Return the HttpClient
used internally. This allows the
flexibility to use the client to make other requests not supported
by this crate, however known to exist.
Auto Trait Implementations§
impl<'a, V, H> Freeze for FundamentumApi<'a, V, H>where
H: Freeze,
impl<'a, V, H> RefUnwindSafe for FundamentumApi<'a, V, H>where
H: RefUnwindSafe,
impl<'a, V, H> Send for FundamentumApi<'a, V, H>where
H: Send,
impl<'a, V, H> Sync for FundamentumApi<'a, V, H>where
H: Sync,
impl<'a, V, H> Unpin for FundamentumApi<'a, V, H>where
H: Unpin,
impl<'a, V, H> UnwindSafe for FundamentumApi<'a, V, H>where
H: UnwindSafe,
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