pub struct ApplicationSecretsApi<T> { /* private fields */ }Expand description
What the API declares under applicationSecrets.
Every method of it is issued through the transport it is handed.
Implementations§
Source§impl<T: Transport> ApplicationSecretsApi<T>
impl<T: Transport> ApplicationSecretsApi<T>
Sourcepub async fn create(
&self,
body: ApplicationSecretPost,
) -> Result<ApplicationSecret, RequestError>
pub async fn create( &self, body: ApplicationSecretPost, ) -> Result<ApplicationSecret, RequestError>
applicationSecrets.create, POST /api/v1/application_secrets/.
Create a new application secret
Sourcepub async fn delete(
&self,
application_secret_token: &str,
application_id: &str,
) -> Result<(), RequestError>
pub async fn delete( &self, application_secret_token: &str, application_id: &str, ) -> Result<(), RequestError>
applicationSecrets.delete, DELETE /api/v1/application_secrets/{application_secret_token}.
Delete an application secret
Sourcepub async fn read(
&self,
application_id: &str,
) -> Result<Vec<ApplicationSecret>, RequestError>
pub async fn read( &self, application_id: &str, ) -> Result<Vec<ApplicationSecret>, RequestError>
applicationSecrets.read, GET /api/v1/application_secrets/.
List application secrets
Sourcepub async fn update(
&self,
application_secret_token: &str,
body: ApplicationSecretPost,
) -> Result<ApplicationSecret, RequestError>
pub async fn update( &self, application_secret_token: &str, body: ApplicationSecretPost, ) -> Result<ApplicationSecret, RequestError>
applicationSecrets.update, PUT /api/v1/application_secrets/{application_secret_token}.
Update an application secret
Trait Implementations§
Source§impl<T: Clone> Clone for ApplicationSecretsApi<T>
impl<T: Clone> Clone for ApplicationSecretsApi<T>
Source§fn clone(&self) -> ApplicationSecretsApi<T>
fn clone(&self) -> ApplicationSecretsApi<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<T> Freeze for ApplicationSecretsApi<T>where
T: Freeze,
impl<T> RefUnwindSafe for ApplicationSecretsApi<T>where
T: RefUnwindSafe,
impl<T> Send for ApplicationSecretsApi<T>where
T: Send,
impl<T> Sync for ApplicationSecretsApi<T>where
T: Sync,
impl<T> Unpin for ApplicationSecretsApi<T>where
T: Unpin,
impl<T> UnsafeUnpin for ApplicationSecretsApi<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ApplicationSecretsApi<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more