pub struct SdkApi<V> { /* 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.
Implementations§
Source§impl<V: ApiVersion> SdkApi<V>
impl<V: ApiVersion> SdkApi<V>
Sourcepub fn new(config: ClientConfig) -> Self
pub fn new(config: ClientConfig) -> Self
Create a new SDK API to access Fundamentum’s API.
Sourcepub async fn status(&self) -> Result<Status, SdkClientError>
pub async fn status(&self) -> Result<Status, SdkClientError>
Sourcepub async fn get_openapi_json(&self) -> Result<Value, SdkClientError>
pub async fn get_openapi_json(&self) -> Result<Value, SdkClientError>
Sourcepub fn devices_api<'a>(
&'a self,
api_config: &'a DevicesApiConfig,
) -> DevicesApi<'a, V>
pub fn devices_api<'a>( &'a self, api_config: &'a DevicesApiConfig, ) -> DevicesApi<'a, V>
Get the Devices API.
Sourcepub fn provisioning_api<'a>(
&'a self,
api_config: &'a ProvisioningApiConfig,
) -> ProvisioningApi<'a, V>
pub fn provisioning_api<'a>( &'a self, api_config: &'a ProvisioningApiConfig, ) -> ProvisioningApi<'a, V>
Get the Provisioning API.
Sourcepub fn shelf_devices_api<'a>(
&'a self,
config: &'a ShelfDevicesApiConfig,
) -> ShelfDevicesApi<'a, V>
pub fn shelf_devices_api<'a>( &'a self, config: &'a ShelfDevicesApiConfig, ) -> ShelfDevicesApi<'a, V>
Get the Shelf Devices API.
Sourcepub const fn get_sdk_client(&self) -> &SdkClient
pub const fn get_sdk_client(&self) -> &SdkClient
Return the real SdkClient
used internally. This allows the flexibility to use
the client to make other requests not supported by this SDK, however known to exist.
Auto Trait Implementations§
impl<V> Freeze for SdkApi<V>
impl<V> !RefUnwindSafe for SdkApi<V>
impl<V> Send for SdkApi<V>
impl<V> Sync for SdkApi<V>
impl<V> Unpin for SdkApi<V>
impl<V> !UnwindSafe for SdkApi<V>
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