pub struct ChallengeContents<Address, Da: DaSpec> {
pub challenger_address: Address,
pub state_transition: StateTransition<Da, Address>,
}
Expand description
The contents of a challenge to an attestation, which are contained as a public output of the proof Generic over an address type and a validity condition
Fields§
§challenger_address: Address
The rollup address of the originator of this challenge
state_transition: StateTransition<Da, Address>
The state transition that was proven
Trait Implementations§
source§impl<Address, Da: DaSpec> BorshDeserialize for ChallengeContents<Address, Da>where
Address: BorshDeserialize,
StateTransition<Da, Address>: BorshDeserialize,
impl<Address, Da: DaSpec> BorshDeserialize for ChallengeContents<Address, Da>where Address: BorshDeserialize, StateTransition<Da, Address>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<Address, Da: DaSpec> BorshSerialize for ChallengeContents<Address, Da>where
Address: BorshSerialize,
StateTransition<Da, Address>: BorshSerialize,
impl<Address, Da: DaSpec> BorshSerialize for ChallengeContents<Address, Da>where Address: BorshSerialize, StateTransition<Da, Address>: BorshSerialize,
source§impl<Address: Clone, Da: Clone + DaSpec> Clone for ChallengeContents<Address, Da>
impl<Address: Clone, Da: Clone + DaSpec> Clone for ChallengeContents<Address, Da>
source§fn clone(&self) -> ChallengeContents<Address, Da>
fn clone(&self) -> ChallengeContents<Address, Da>
Returns a copy 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<'de, Address, Da> Deserialize<'de> for ChallengeContents<Address, Da>where
Address: Deserialize<'de>,
Da: Deserialize<'de> + DaSpec,
impl<'de, Address, Da> Deserialize<'de> for ChallengeContents<Address, Da>where Address: Deserialize<'de>, Da: Deserialize<'de> + DaSpec,
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
source§impl<Address: PartialEq, Da: PartialEq + DaSpec> PartialEq<ChallengeContents<Address, Da>> for ChallengeContents<Address, Da>
impl<Address: PartialEq, Da: PartialEq + DaSpec> PartialEq<ChallengeContents<Address, Da>> for ChallengeContents<Address, Da>
source§fn eq(&self, other: &ChallengeContents<Address, Da>) -> bool
fn eq(&self, other: &ChallengeContents<Address, Da>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Address, Da> Serialize for ChallengeContents<Address, Da>where
Address: Serialize,
Da: Serialize + DaSpec,
impl<Address, Da> Serialize for ChallengeContents<Address, Da>where Address: Serialize, Da: Serialize + DaSpec,
impl<Address: Eq, Da: Eq + DaSpec> Eq for ChallengeContents<Address, Da>
impl<Address, Da: DaSpec> StructuralEq for ChallengeContents<Address, Da>
impl<Address, Da: DaSpec> StructuralPartialEq for ChallengeContents<Address, Da>
Auto Trait Implementations§
impl<Address, Da> RefUnwindSafe for ChallengeContents<Address, Da>where Address: RefUnwindSafe, <Da as DaSpec>::SlotHash: RefUnwindSafe, <Da as DaSpec>::ValidityCondition: RefUnwindSafe,
impl<Address, Da> Send for ChallengeContents<Address, Da>where Address: Send,
impl<Address, Da> Sync for ChallengeContents<Address, Da>where Address: Sync,
impl<Address, Da> Unpin for ChallengeContents<Address, Da>where Address: Unpin, <Da as DaSpec>::SlotHash: Unpin, <Da as DaSpec>::ValidityCondition: Unpin,
impl<Address, Da> UnwindSafe for ChallengeContents<Address, Da>where Address: UnwindSafe, <Da as DaSpec>::SlotHash: UnwindSafe, <Da as DaSpec>::ValidityCondition: UnwindSafe,
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