pub struct ResourceIdentity {
pub kind: String,
pub principal_id: Option<String>,
pub user_assigned: Vec<(String, String)>,
}Expand description
A resource’s managed identity block.
Fields§
§kind: StringSystemAssigned, UserAssigned, SystemAssigned, UserAssigned, or None.
principal_id: Option<String>System-assigned principal id, when enabled.
user_assigned: Vec<(String, String)>(resource id, principal id) of attached user-assigned identities.
Implementations§
Source§impl ResourceIdentity
impl ResourceIdentity
Sourcepub fn principal_ids(&self) -> Vec<&str>
pub fn principal_ids(&self) -> Vec<&str>
All principal ids this resource can act as.
Trait Implementations§
Source§impl Clone for ResourceIdentity
impl Clone for ResourceIdentity
Source§fn clone(&self) -> ResourceIdentity
fn clone(&self) -> ResourceIdentity
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 Freeze for ResourceIdentity
impl RefUnwindSafe for ResourceIdentity
impl Send for ResourceIdentity
impl Sync for ResourceIdentity
impl Unpin for ResourceIdentity
impl UnsafeUnpin for ResourceIdentity
impl UnwindSafe for ResourceIdentity
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