pub struct TaskDispute {
pub raised_by: Address,
pub reason: String,
pub raised_at: Timestamp,
pub resolution: Option<DisputeResolution>,
}Expand description
Dispute state attached to a task (lifecycle P4).
Fields§
§raised_by: AddressWho raised the dispute.
reason: StringHuman-readable reason.
raised_at: TimestampWhen it was raised.
resolution: Option<DisputeResolution>Resolution once an oracle/governance hook arbitrates (None while open).
Trait Implementations§
Source§impl Clone for TaskDispute
impl Clone for TaskDispute
Source§fn clone(&self) -> TaskDispute
fn clone(&self) -> TaskDispute
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 TaskDispute
impl Debug for TaskDispute
Source§impl<'de> Deserialize<'de> for TaskDispute
impl<'de> Deserialize<'de> for TaskDispute
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 TaskDispute
Source§impl PartialEq for TaskDispute
impl PartialEq for TaskDispute
Source§fn eq(&self, other: &TaskDispute) -> bool
fn eq(&self, other: &TaskDispute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskDispute
impl Serialize for TaskDispute
impl StructuralPartialEq for TaskDispute
Auto Trait Implementations§
impl Freeze for TaskDispute
impl RefUnwindSafe for TaskDispute
impl Send for TaskDispute
impl Sync for TaskDispute
impl Unpin for TaskDispute
impl UnsafeUnpin for TaskDispute
impl UnwindSafe for TaskDispute
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