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§
Source§impl Clone for ApprovalRequest
impl Clone for ApprovalRequest
Source§fn clone(&self) -> ApprovalRequest
fn clone(&self) -> ApprovalRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ApprovalRequest
impl Debug for ApprovalRequest
Source§impl<'de> Deserialize<'de> for ApprovalRequest
impl<'de> Deserialize<'de> for ApprovalRequest
Source§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
Source§impl PartialEq for ApprovalRequest
impl PartialEq for ApprovalRequest
Source§impl Serialize for ApprovalRequest
impl Serialize for ApprovalRequest
impl StructuralPartialEq for ApprovalRequest
Auto Trait Implementations§
impl Freeze for ApprovalRequest
impl RefUnwindSafe for ApprovalRequest
impl Send for ApprovalRequest
impl Sync for ApprovalRequest
impl Unpin for ApprovalRequest
impl UnwindSafe for ApprovalRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more