pub struct ProofSubmissionResult {
pub proof_id: Uuid,
pub accepted: bool,
pub rejection_reason: Option<String>,
pub reward_points: Option<Points>,
}Expand description
Proof submission result.
Fields§
§proof_id: UuidUnique proof ID.
accepted: boolWhether the proof was accepted.
rejection_reason: Option<String>Reason for rejection (if not accepted).
reward_points: Option<Points>Reward amount (if accepted).
Trait Implementations§
Source§impl Clone for ProofSubmissionResult
impl Clone for ProofSubmissionResult
Source§fn clone(&self) -> ProofSubmissionResult
fn clone(&self) -> ProofSubmissionResult
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 ProofSubmissionResult
impl Debug for ProofSubmissionResult
Source§impl<'de> Deserialize<'de> for ProofSubmissionResult
impl<'de> Deserialize<'de> for ProofSubmissionResult
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 ProofSubmissionResult
impl RefUnwindSafe for ProofSubmissionResult
impl Send for ProofSubmissionResult
impl Sync for ProofSubmissionResult
impl Unpin for ProofSubmissionResult
impl UnwindSafe for ProofSubmissionResult
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