pub struct PolicyClient { /* private fields */ }Expand description
A client scoped to a single policy.
Implementations§
Source§impl PolicyClient
impl PolicyClient
Sourcepub fn new(policy_name: impl Into<String>, client: PolicyServiceClient) -> Self
pub fn new(policy_name: impl Into<String>, client: PolicyServiceClient) -> Self
Create a client bound to the resource’s name components.
Sourcepub fn create_policy(&self, policy_info: PolicyInfo) -> CreatePolicyBuilder
pub fn create_policy(&self, policy_info: PolicyInfo) -> CreatePolicyBuilder
Create a new policy
Creates a new row-filter or column-mask policy on the specified securable.
Sourcepub fn get(&self) -> GetPolicyBuilder
pub fn get(&self) -> GetPolicyBuilder
Get a policy
Gets the policy that matches the supplied name, defined on the specified securable.
Sourcepub fn update(&self, policy_info: PolicyInfo) -> UpdatePolicyBuilder
pub fn update(&self, policy_info: PolicyInfo) -> UpdatePolicyBuilder
Update a policy
Updates the policy that matches the supplied name, defined on the specified securable.
Sourcepub fn delete(&self) -> DeletePolicyBuilder
pub fn delete(&self) -> DeletePolicyBuilder
Delete a policy
Deletes the policy that matches the supplied name, defined on the specified securable.
Trait Implementations§
Source§impl Clone for PolicyClient
impl Clone for PolicyClient
Source§fn clone(&self) -> PolicyClient
fn clone(&self) -> PolicyClient
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 !RefUnwindSafe for PolicyClient
impl !UnwindSafe for PolicyClient
impl Freeze for PolicyClient
impl Send for PolicyClient
impl Sync for PolicyClient
impl Unpin for PolicyClient
impl UnsafeUnpin for PolicyClient
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