#[non_exhaustive]pub struct ConsentResponse {
pub plan_digest: Digest,
pub base_revision: u64,
pub input_vector: InputVector,
pub decision: ConsentDecision,
/* private fields */
}Expand description
A response echoes every approval binding. Unknown decisions decode for diagnostics but never approve. Decline, timeout or disconnect applies nothing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.plan_digest: Digest§base_revision: u64§input_vector: InputVector§decision: ConsentDecisionImplementations§
Source§impl ConsentResponse
impl ConsentResponse
pub fn new(request: &ConsentRequest, decision: ConsentDecision) -> Self
Sourcepub fn approves(&self, request: &ConsentRequest) -> bool
pub fn approves(&self, request: &ConsentRequest) -> bool
Check body binding only. The caller must additionally authenticate the response connection and the still-pending request before consuming it.
Trait Implementations§
Source§impl Clone for ConsentResponse
impl Clone for ConsentResponse
Source§impl Debug for ConsentResponse
impl Debug for ConsentResponse
Source§impl<'de> Deserialize<'de> for ConsentResponse
impl<'de> Deserialize<'de> for ConsentResponse
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 ConsentResponse
Source§impl PartialEq for ConsentResponse
impl PartialEq for ConsentResponse
Source§impl Serialize for ConsentResponse
impl Serialize for ConsentResponse
impl StructuralPartialEq for ConsentResponse
Auto Trait Implementations§
impl Forget for ConsentResponse
impl Freeze for ConsentResponse
impl Move for ConsentResponse
impl RefUnwindSafe for ConsentResponse
impl Send for ConsentResponse
impl Sync for ConsentResponse
impl Unpin for ConsentResponse
impl UnsafeUnpin for ConsentResponse
impl UnwindSafe for ConsentResponse
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