#[non_exhaustive]pub struct TemplateLinkedPolicyDefinition {
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.
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 TemplateLinkedPolicyDefinition
impl TemplateLinkedPolicyDefinition
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 TemplateLinkedPolicyDefinition
impl TemplateLinkedPolicyDefinition
sourcepub fn builder() -> TemplateLinkedPolicyDefinitionBuilder
pub fn builder() -> TemplateLinkedPolicyDefinitionBuilder
Creates a new builder-style object to manufacture TemplateLinkedPolicyDefinition.
Trait Implementations§
source§impl Clone for TemplateLinkedPolicyDefinition
impl Clone for TemplateLinkedPolicyDefinition
source§fn clone(&self) -> TemplateLinkedPolicyDefinition
fn clone(&self) -> TemplateLinkedPolicyDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for TemplateLinkedPolicyDefinition
impl PartialEq for TemplateLinkedPolicyDefinition
source§fn eq(&self, other: &TemplateLinkedPolicyDefinition) -> bool
fn eq(&self, other: &TemplateLinkedPolicyDefinition) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemplateLinkedPolicyDefinition
Auto Trait Implementations§
impl Freeze for TemplateLinkedPolicyDefinition
impl RefUnwindSafe for TemplateLinkedPolicyDefinition
impl Send for TemplateLinkedPolicyDefinition
impl Sync for TemplateLinkedPolicyDefinition
impl Unpin for TemplateLinkedPolicyDefinition
impl UnwindSafe for TemplateLinkedPolicyDefinition
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