Struct linera_chain::data_types::ProposalPayload
source · pub struct ProposalPayload<'a> {
pub content: Cow<'a, BlockAndRound>,
pub outcome: Option<Cow<'a, BlockExecutionOutcome>>,
}
Fields§
§content: Cow<'a, BlockAndRound>
§outcome: Option<Cow<'a, BlockExecutionOutcome>>
Trait Implementations§
source§impl<'a> Debug for ProposalPayload<'a>
impl<'a> Debug for ProposalPayload<'a>
source§impl<'de, 'a> Deserialize<'de> for ProposalPayload<'a>
impl<'de, 'a> Deserialize<'de> for ProposalPayload<'a>
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<'a> Serialize for ProposalPayload<'a>
impl<'a> Serialize for ProposalPayload<'a>
impl<'a> BcsSignable for ProposalPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProposalPayload<'a>
impl<'a> RefUnwindSafe for ProposalPayload<'a>
impl<'a> Send for ProposalPayload<'a>
impl<'a> Sync for ProposalPayload<'a>
impl<'a> Unpin for ProposalPayload<'a>
impl<'a> UnwindSafe for ProposalPayload<'a>
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
source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> HasTypeName for Twhere
T: BcsHashable,
impl<T> HasTypeName for Twhere
T: BcsHashable,
source§impl<T, Hasher> Hashable<Hasher> for Twhere
T: BcsHashable,
Hasher: Write,
impl<T, Hasher> Hashable<Hasher> for Twhere
T: BcsHashable,
Hasher: Write,
source§fn write(&self, hasher: &mut Hasher)
fn write(&self, hasher: &mut Hasher)
Send the content of
Self
to the given hasher.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32 ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length
bytes from memory from the provided location
.
source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8]
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8] ) -> Result<(), RuntimeError>
Writes the bytes
to memory at the provided location
.