Struct em_client::models::ApprovalRequest
source[−]pub struct ApprovalRequest {Show 15 fields
pub request_id: Uuid,
pub requester: Entity,
pub created_at: i64,
pub acct_id: Uuid,
pub operation: String,
pub method: String,
pub body: Option<Value>,
pub approvers: Vec<Entity>,
pub denier: Option<Entity>,
pub denial_reason: Option<String>,
pub reviewers: Option<Vec<Entity>>,
pub status: ApprovalRequestStatus,
pub subjects: Option<Vec<ApprovalSubject>>,
pub description: Option<String>,
pub expiry: i64,
}
Fields
request_id: Uuid
UUID uniquely identifying this approval request.
requester: Entity
created_at: i64
When this approval request was created.
acct_id: Uuid
The account ID of the account that this approval request belongs to.
operation: String
Operation URL path, e.g. /crypto/v1/keys
, /crypto/v1/groups/<id>
.
method: String
Method for the operation: POST, PATCH, PUT, DELETE, or GET. Default is POST.
body: Option<Value>
approvers: Vec<Entity>
denier: Option<Entity>
denial_reason: Option<String>
Reason given by denier.
reviewers: Option<Vec<Entity>>
status: ApprovalRequestStatus
subjects: Option<Vec<ApprovalSubject>>
description: Option<String>
Optional comment about the approval request for the reviewer.
expiry: i64
When this approval request expires.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ApprovalRequest
impl Send for ApprovalRequest
impl Sync for ApprovalRequest
impl Unpin for ApprovalRequest
impl UnwindSafe for ApprovalRequest
Blanket Implementations
Mutably borrows from an owned value. Read more