pub struct Policy {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Policy
impl Policy
Sourcepub async fn global_view(&self) -> Result<FleetRolePolicy>
pub async fn global_view(&self) -> Result<FleetRolePolicy>
Fetch the top-level IAM policy.
This function performs a GET
to the /global/policy
endpoint.
Sourcepub async fn global_update(
&self,
body: &FleetRolePolicy,
) -> Result<FleetRolePolicy>
pub async fn global_update( &self, body: &FleetRolePolicy, ) -> Result<FleetRolePolicy>
Update the top-level IAM policy.
This function performs a PUT
to the /global/policy
endpoint.
Auto Trait Implementations§
impl Freeze for Policy
impl !RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl !UnwindSafe for Policy
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