pub struct StorageControllerClient {
pub credential_id: String,
pub credential_secret: String,
/* private fields */
}Fields§
§credential_id: String§credential_secret: StringImplementations§
Source§impl StorageControllerClient
impl StorageControllerClient
pub fn new(base_url: &str) -> Self
pub fn create_storage( &self, ) -> Result<CreateStorageRes, WildlandHttpClientError>
pub fn create_credentials( &self, request: CreateCredentialsReq, ) -> Result<CreateCredentialsRes, WildlandHttpClientError>
pub fn request_signature( &self, request: SignatureRequestReq, ) -> Result<SignatureRequestRes, WildlandHttpClientError>
pub fn request_metrics( &self, request: RequestMetricsReq, ) -> Result<RequestMetricsRes, WildlandHttpClientError>
pub fn get_credential_id(&self) -> &str
pub fn get_credential_secret(&self) -> &str
Trait Implementations§
Source§impl Clone for StorageControllerClient
impl Clone for StorageControllerClient
Source§fn clone(&self) -> StorageControllerClient
fn clone(&self) -> StorageControllerClient
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 moreAuto Trait Implementations§
impl Freeze for StorageControllerClient
impl !RefUnwindSafe for StorageControllerClient
impl !Send for StorageControllerClient
impl !Sync for StorageControllerClient
impl Unpin for StorageControllerClient
impl !UnwindSafe for StorageControllerClient
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