GoodMemGoodMem
ReferenceSdkRustTypes

CreateAuthorizationGrantRequest

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

All types

Struct CreateAuthorizationGrantRequest

goodmem::models::CreateAuthorizationGrantRequest

Creates one live direct authorization grant.

pub struct CreateAuthorizationGrantRequest {
    pub grant_id: Option<String>,
    pub audience: Box<GrantAudience>,
    pub rule: Box<AccessPolicyRule>,
}

Referenced types: AccessPolicyRule, GrantAudience.

Fields

grant_id

pub grant_id: Option<String>

Optional caller-provided grant UUID. Wire name: grantId.

audience

pub audience: Box<GrantAudience>

Audience receiving the grant. Wire name: audience.

rule

pub rule: Box<AccessPolicyRule>

Authorization descriptor to grant. Wire name: rule.

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

On this page