Struct wildland_http_client::sc::client::StorageControllerClient
source · pub struct StorageControllerClient {
pub credential_id: String,
pub credential_secret: String,
/* private fields */
}
Fields§
§credential_id: String
§credential_secret: String
Implementations§
source§impl StorageControllerClient
impl StorageControllerClient
pub fn new(base_url: String) -> 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 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 !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