AuthorizationGrant
Rust struct goodmem::models::AuthorizationGrant: declaration, fields or variants, and implementations.
Struct AuthorizationGrant
goodmem::models::AuthorizationGrant
Current or historical direct authorization grant.
pub struct AuthorizationGrant {
pub grant_id: String,
pub audience: Box<GrantAudience>,
pub rule: Box<AccessPolicyRule>,
pub created_at: i64,
pub created_by_id: String,
pub revoked_at: Option<i64>,
pub revoked_by_id: Option<String>,
}Referenced types: AccessPolicyRule, GrantAudience.
Fields
grant_id
pub grant_id: String
Durable grant UUID.
Wire name: grantId.
audience
pub audience: Box<GrantAudience>
Grant audience.
Wire name: audience.
rule
pub rule: Box<AccessPolicyRule>
Granted authorization descriptor.
Wire name: rule.
created_at
pub created_at: i64
Creation time in epoch milliseconds.
Wire name: createdAt.
created_by_id
pub created_by_id: String
Exact audit actor that created the grant.
Wire name: createdById.
revoked_at
pub revoked_at: Option<i64>
Revocation time in epoch milliseconds, when revoked.
Wire name: revokedAt.
revoked_by_id
pub revoked_by_id: Option<String>
Exact audit actor that revoked the grant, when revoked.
Wire name: revokedById.
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 AuthorizationGrantimpl std::fmt::Debug for AuthorizationGrant