Struct azure_devops_rust_api::tokens::pats::Client
source · pub struct Client(/* private fields */);Implementations§
source§impl Client
impl Client
sourcepub fn list(&self, organization: impl Into<String>) -> RequestBuilder
pub fn list(&self, organization: impl Into<String>) -> RequestBuilder
Gets a paged list of personal access tokens (PATs) created in this organization. Subsequent calls to the API require the same filtering options to be supplied.
Arguments:
organization: The name of the Azure DevOps organization.
sourcepub fn get(
&self,
organization: impl Into<String>,
authorization_id: impl Into<String>
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, authorization_id: impl Into<String> ) -> RequestBuilder
Gets a single personal access token (PAT).
Arguments:
organization: The name of the Azure DevOps organization.authorization_id: The authorizationId identifying a single, unique personal access token (PAT)
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<PatTokenCreateRequest>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<PatTokenCreateRequest> ) -> RequestBuilder
Creates a new personal access token (PAT) for the requesting user.
Arguments:
organization: The name of the Azure DevOps organization.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<PatTokenUpdateRequest>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<PatTokenUpdateRequest> ) -> RequestBuilder
Updates an existing personal access token (PAT) with the new parameters. To update a token, it must be valid (has not been revoked).
Arguments:
organization: The name of the Azure DevOps organization.
sourcepub fn revoke(
&self,
organization: impl Into<String>,
authorization_id: impl Into<String>
) -> RequestBuilder
pub fn revoke( &self, organization: impl Into<String>, authorization_id: impl Into<String> ) -> RequestBuilder
Revokes a personal access token (PAT) by authorizationId.
Arguments:
organization: The name of the Azure DevOps organization.authorization_id: The authorizationId identifying a single, unique personal access token (PAT)
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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