#[non_exhaustive]pub struct TemplateLinkedPolicyDefinitionItem {
pub policy_template_id: String,
pub principal: Option<EntityIdentifier>,
pub resource: Option<EntityIdentifier>,
}Expand description
Contains information about a policy created by instantiating a policy template.
This
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.policy_template_id: StringThe unique identifier of the policy template used to create this policy.
principal: Option<EntityIdentifier>The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
resource: Option<EntityIdentifier>The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
Implementations§
source§impl TemplateLinkedPolicyDefinitionItem
impl TemplateLinkedPolicyDefinitionItem
sourcepub fn policy_template_id(&self) -> &str
pub fn policy_template_id(&self) -> &str
The unique identifier of the policy template used to create this policy.
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
source§impl TemplateLinkedPolicyDefinitionItem
impl TemplateLinkedPolicyDefinitionItem
sourcepub fn builder() -> TemplateLinkedPolicyDefinitionItemBuilder
pub fn builder() -> TemplateLinkedPolicyDefinitionItemBuilder
Creates a new builder-style object to manufacture TemplateLinkedPolicyDefinitionItem.
Trait Implementations§
source§impl Clone for TemplateLinkedPolicyDefinitionItem
impl Clone for TemplateLinkedPolicyDefinitionItem
source§fn clone(&self) -> TemplateLinkedPolicyDefinitionItem
fn clone(&self) -> TemplateLinkedPolicyDefinitionItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for TemplateLinkedPolicyDefinitionItem
impl PartialEq for TemplateLinkedPolicyDefinitionItem
source§fn eq(&self, other: &TemplateLinkedPolicyDefinitionItem) -> bool
fn eq(&self, other: &TemplateLinkedPolicyDefinitionItem) -> bool
self and other values to be equal, and is used
by ==.