#[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 ==.impl StructuralPartialEq for TemplateLinkedPolicyDefinitionItem
Auto Trait Implementations§
impl Freeze for TemplateLinkedPolicyDefinitionItem
impl RefUnwindSafe for TemplateLinkedPolicyDefinitionItem
impl Send for TemplateLinkedPolicyDefinitionItem
impl Sync for TemplateLinkedPolicyDefinitionItem
impl Unpin for TemplateLinkedPolicyDefinitionItem
impl UnwindSafe for TemplateLinkedPolicyDefinitionItem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more