Struct azure_devops_rust_api::security::permissions::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn has_permissions(
&self,
security_namespace_id: impl Into<String>,
organization: impl Into<String>,
permissions: i32
) -> RequestBuilder
pub fn has_permissions( &self, security_namespace_id: impl Into<String>, organization: impl Into<String>, permissions: i32 ) -> RequestBuilder
Evaluates whether the caller has the specified permissions on the specified set of security tokens.
Arguments:
security_namespace_id
: Security namespace identifier.organization
: The name of the Azure DevOps organization.permissions
: Permissions to evaluate.
sourcepub fn remove_permission(
&self,
security_namespace_id: impl Into<String>,
descriptor: impl Into<String>,
organization: impl Into<String>,
permissions: i32
) -> RequestBuilder
pub fn remove_permission( &self, security_namespace_id: impl Into<String>, descriptor: impl Into<String>, organization: impl Into<String>, permissions: i32 ) -> RequestBuilder
Removes the specified permissions on a security token for a user or group.
Arguments:
security_namespace_id
: Security namespace identifier.descriptor
: Identity descriptor of the user to remove permissions for.organization
: The name of the Azure DevOps organization.permissions
: Permissions to remove.
sourcepub fn has_permissions_batch(
&self,
body: impl Into<PermissionEvaluationBatch>,
organization: impl Into<String>
) -> RequestBuilder
pub fn has_permissions_batch( &self, body: impl Into<PermissionEvaluationBatch>, organization: impl Into<String> ) -> RequestBuilder
Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false.
Arguments:
body
: The set of evaluation requests.organization
: The name of the Azure DevOps organization.
Auto Trait Implementations§
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