pub struct GateResponse {
pub approved: bool,
pub note: Option<String>,
pub responded_by: Option<String>,
}Expand description
The human’s response to a gate.
Fields§
§approved: boolWhether the gated work is approved to advance.
note: Option<String>Optional free-text note (e.g. what to fix on a rejection).
responded_by: Option<String>Who responded (human name, or “hermes”).
Trait Implementations§
Source§impl Clone for GateResponse
impl Clone for GateResponse
Source§fn clone(&self) -> GateResponse
fn clone(&self) -> GateResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GateResponse
impl Debug for GateResponse
Source§impl<'de> Deserialize<'de> for GateResponse
impl<'de> Deserialize<'de> for GateResponse
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
impl Eq for GateResponse
Source§impl PartialEq for GateResponse
impl PartialEq for GateResponse
Source§impl Serialize for GateResponse
impl Serialize for GateResponse
impl StructuralPartialEq for GateResponse
Auto Trait Implementations§
impl Freeze for GateResponse
impl RefUnwindSafe for GateResponse
impl Send for GateResponse
impl Sync for GateResponse
impl Unpin for GateResponse
impl UnsafeUnpin for GateResponse
impl UnwindSafe for GateResponse
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