pub struct GetApprovalResponse {
pub pending: Option<ApprovalRequest>,
pub resolution: Option<ResolvedApproval>,
}Expand description
GET /approvals/{id}.
Returns the pending record if still outstanding; otherwise returns
the resolved record. Adapters may encode “resolved” via the
resolution field so callers can tell the two states apart without
extra round trips.
Fields§
§pending: Option<ApprovalRequest>§resolution: Option<ResolvedApproval>Trait Implementations§
Source§impl Clone for GetApprovalResponse
impl Clone for GetApprovalResponse
Source§fn clone(&self) -> GetApprovalResponse
fn clone(&self) -> GetApprovalResponse
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 GetApprovalResponse
impl Debug for GetApprovalResponse
Source§impl<'de> Deserialize<'de> for GetApprovalResponse
impl<'de> Deserialize<'de> for GetApprovalResponse
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
Auto Trait Implementations§
impl Freeze for GetApprovalResponse
impl RefUnwindSafe for GetApprovalResponse
impl Send for GetApprovalResponse
impl Sync for GetApprovalResponse
impl Unpin for GetApprovalResponse
impl UnsafeUnpin for GetApprovalResponse
impl UnwindSafe for GetApprovalResponse
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