#[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.
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 ==.impl StructuralPartialEq for TemplateLinkedPolicyDefinitionDetail
Auto Trait Implementations§
impl Freeze for TemplateLinkedPolicyDefinitionDetail
impl RefUnwindSafe for TemplateLinkedPolicyDefinitionDetail
impl Send for TemplateLinkedPolicyDefinitionDetail
impl Sync for TemplateLinkedPolicyDefinitionDetail
impl Unpin for TemplateLinkedPolicyDefinitionDetail
impl UnwindSafe for TemplateLinkedPolicyDefinitionDetail
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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