GoodMemGoodMem
ReferenceSdkRustTypes

GrantAudience

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

All types

Struct GrantAudience

goodmem::models::GrantAudience

Exactly one principal or the all-authenticated audience.

pub struct GrantAudience {
    pub principal_id: Option<String>,
    pub all_authenticated: Option<GrantAudienceAllAuthenticated>,
}

Referenced types: GrantAudienceAllAuthenticated.

Fields

principal_id

pub principal_id: Option<String>

Active HUMAN or SERVICE principal UUID. Wire name: principalId.

all_authenticated

pub all_authenticated: Option<GrantAudienceAllAuthenticated>

Set to true to address every authenticated principal. Wire name: allAuthenticated.

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 GrantAudience
  • impl std::fmt::Debug for GrantAudience

On this page