AuthorizationCheck
Rust struct goodmem::models::AuthorizationCheck: declaration, fields or variants, and implementations.
Struct AuthorizationCheck
goodmem::models::AuthorizationCheck
One concrete, advisory authorization check. Top-level creates and LIST_API_KEY target INSTANCE; CREATE_MEMORY and LIST_MEMORY target a parent SPACE; ordinary resource operations target the concrete resource. LIST_RETRIEVE_MEMORY_LOG_POLICY is not supported by this endpoint.
pub struct AuthorizationCheck {
pub operation: Operation,
pub target: Box<AccessPolicyTarget>,
}Referenced types: AccessPolicyTarget, Operation.
Fields
operation
pub operation: Operation
Operation the caller proposes to perform.
Wire name: operation.
target
pub target: Box<AccessPolicyTarget>
Target required by the operation: INSTANCE for top-level creates and LIST_API_KEY; parent SPACE for CREATE_MEMORY or LIST_MEMORY; otherwise the concrete resource.
Wire name: target.
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 AuthorizationCheckimpl std::fmt::Debug for AuthorizationCheck