#[non_exhaustive]pub struct TemplateLinkedPolicyDefinitionDetail {
pub policy_template_id: String,
pub principal: Option<EntityIdentifier>,
pub resource: Option<EntityIdentifier>,
}Expand description
Contains information about a policy that was
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 TemplateLinkedPolicyDefinitionDetail
impl TemplateLinkedPolicyDefinitionDetail
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 TemplateLinkedPolicyDefinitionDetail
impl TemplateLinkedPolicyDefinitionDetail
sourcepub fn builder() -> TemplateLinkedPolicyDefinitionDetailBuilder
pub fn builder() -> TemplateLinkedPolicyDefinitionDetailBuilder
Creates a new builder-style object to manufacture TemplateLinkedPolicyDefinitionDetail.
Trait Implementations§
source§impl Clone for TemplateLinkedPolicyDefinitionDetail
impl Clone for TemplateLinkedPolicyDefinitionDetail
source§fn clone(&self) -> TemplateLinkedPolicyDefinitionDetail
fn clone(&self) -> TemplateLinkedPolicyDefinitionDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for TemplateLinkedPolicyDefinitionDetail
impl PartialEq for TemplateLinkedPolicyDefinitionDetail
source§fn eq(&self, other: &TemplateLinkedPolicyDefinitionDetail) -> bool
fn eq(&self, other: &TemplateLinkedPolicyDefinitionDetail) -> bool
self and other values to be equal, and is used
by ==.