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
sourceimpl StorageControllerClient
impl StorageControllerClient
pub fn new(base_url: &str) -> Self
pub async fn create_storage(
&self
) -> Result<CreateStorageRes, WildlandHttpClientError>
pub async fn create_credentials(
&self,
request: CreateCredentialsReq
) -> Result<CreateCredentialsRes, WildlandHttpClientError>
pub async fn request_signature(
&self,
request: SignatureRequestReq
) -> Result<SignatureRequestRes, WildlandHttpClientError>
pub async 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
sourceimpl Clone for StorageControllerClient
impl Clone for StorageControllerClient
sourcefn clone(&self) -> StorageControllerClient
fn clone(&self) -> StorageControllerClient
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StorageControllerClient
impl Debug for StorageControllerClient
sourceimpl Default for StorageControllerClient
impl Default for StorageControllerClient
sourcefn default() -> StorageControllerClient
fn default() -> StorageControllerClient
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StorageControllerClient
impl Send for StorageControllerClient
impl Sync for StorageControllerClient
impl Unpin for StorageControllerClient
impl UnwindSafe for StorageControllerClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more