GoodMemGoodMem
ReferenceSdkRustTypes

AccessPolicyRule

Rust struct goodmem::models::AccessPolicyRule: declaration, fields or variants, and implementations.

All types

Struct AccessPolicyRule

goodmem::models::AccessPolicyRule

One operation, selector, and optional assigned resource.

pub struct AccessPolicyRule {
    pub operation: Operation,
    pub selector: Selector,
    pub assigned_resource: Option<Box<AccessPolicyTarget>>,
}

Referenced types: AccessPolicyTarget, Operation, Selector.

Fields

operation

pub operation: Operation

Protected operation. Wire name: operation.

selector

pub selector: Selector

Resource-selection semantics. Wire name: selector.

assigned_resource

pub assigned_resource: Option<Box<AccessPolicyTarget>>

Required exactly for EXACT and DIRECT_MEMBERS_OF selectors. Wire name: assignedResource.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for AccessPolicyRule
  • impl std::fmt::Debug for AccessPolicyRule

On this page