Struct aws_sdk_verifiedpermissions::types::EntityItem
source · #[non_exhaustive]pub struct EntityItem {
pub identifier: Option<EntityIdentifier>,
pub attributes: Option<HashMap<String, AttributeValue>>,
pub parents: Option<Vec<EntityIdentifier>>,
}Expand description
Contains information about an entity that can be referenced in a Cedar policy.
This data type is used as one of the fields in the EntitiesDefinition structure.
{ "identifier": { "entityType": "Photo", "entityId": "VacationPhoto94.jpg" }, "attributes": {}, "parents": [ { "entityType": "Album", "entityId": "alice_folder" } ] }
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: Option<EntityIdentifier>The identifier of the entity.
attributes: Option<HashMap<String, AttributeValue>>A list of attributes for the entity.
parents: Option<Vec<EntityIdentifier>>The parents in the hierarchy that contains the entity.
Implementations§
source§impl EntityItem
impl EntityItem
sourcepub fn identifier(&self) -> Option<&EntityIdentifier>
pub fn identifier(&self) -> Option<&EntityIdentifier>
The identifier of the entity.
sourcepub fn attributes(&self) -> Option<&HashMap<String, AttributeValue>>
pub fn attributes(&self) -> Option<&HashMap<String, AttributeValue>>
A list of attributes for the entity.
sourcepub fn parents(&self) -> &[EntityIdentifier]
pub fn parents(&self) -> &[EntityIdentifier]
The parents in the hierarchy that contains the entity.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parents.is_none().
source§impl EntityItem
impl EntityItem
sourcepub fn builder() -> EntityItemBuilder
pub fn builder() -> EntityItemBuilder
Creates a new builder-style object to manufacture EntityItem.
Trait Implementations§
source§impl Clone for EntityItem
impl Clone for EntityItem
source§fn clone(&self) -> EntityItem
fn clone(&self) -> EntityItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityItem
impl Debug for EntityItem
source§impl PartialEq for EntityItem
impl PartialEq for EntityItem
source§fn eq(&self, other: &EntityItem) -> bool
fn eq(&self, other: &EntityItem) -> bool
self and other values to be equal, and is used
by ==.