pub enum JsonPayloadAttributes {
V1(JsonPayloadAttributesV1),
V2(JsonPayloadAttributesV2),
}Variants§
Implementations§
Source§impl JsonPayloadAttributes
impl JsonPayloadAttributes
pub fn to_ref<'__superstruct>( &'__superstruct self, ) -> JsonPayloadAttributesRef<'__superstruct>
pub fn to_mut<'__superstruct>( &'__superstruct mut self, ) -> JsonPayloadAttributesRefMut<'__superstruct>
pub fn as_v1(&self) -> Result<&JsonPayloadAttributesV1, Error>
pub fn as_v1_mut(&mut self) -> Result<&mut JsonPayloadAttributesV1, Error>
pub fn as_v2(&self) -> Result<&JsonPayloadAttributesV2, Error>
pub fn as_v2_mut(&mut self) -> Result<&mut JsonPayloadAttributesV2, Error>
pub fn timestamp(&self) -> &u64
pub fn prev_randao(&self) -> &Hash256
pub fn suggested_fee_recipient(&self) -> &Address
pub fn timestamp_mut(&mut self) -> &mut u64
pub fn prev_randao_mut(&mut self) -> &mut Hash256
pub fn suggested_fee_recipient_mut(&mut self) -> &mut Address
pub fn withdrawals(&self) -> Result<&Vec<JsonWithdrawal>, Error>
pub fn withdrawals_mut(&mut self) -> Result<&mut Vec<JsonWithdrawal>, Error>
Trait Implementations§
Source§impl Clone for JsonPayloadAttributes
impl Clone for JsonPayloadAttributes
Source§fn clone(&self) -> JsonPayloadAttributes
fn clone(&self) -> JsonPayloadAttributes
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 JsonPayloadAttributes
impl Debug for JsonPayloadAttributes
Source§impl<'de> Deserialize<'de> for JsonPayloadAttributes
impl<'de> Deserialize<'de> for JsonPayloadAttributes
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<'__superstruct> From<&'__superstruct JsonPayloadAttributes> for JsonPayloadAttributesRef<'__superstruct>
impl<'__superstruct> From<&'__superstruct JsonPayloadAttributes> for JsonPayloadAttributesRef<'__superstruct>
Source§fn from(ref_to_enum: &'__superstruct JsonPayloadAttributes) -> Self
fn from(ref_to_enum: &'__superstruct JsonPayloadAttributes) -> Self
Converts to this type from the input type.
Source§impl From<JsonPayloadAttributes> for PayloadAttributes
impl From<JsonPayloadAttributes> for PayloadAttributes
Source§fn from(json_payload_attributes: JsonPayloadAttributes) -> Self
fn from(json_payload_attributes: JsonPayloadAttributes) -> Self
Converts to this type from the input type.
Source§impl From<JsonPayloadAttributesV1> for JsonPayloadAttributes
impl From<JsonPayloadAttributesV1> for JsonPayloadAttributes
Source§fn from(variant: JsonPayloadAttributesV1) -> Self
fn from(variant: JsonPayloadAttributesV1) -> Self
Converts to this type from the input type.
Source§impl From<JsonPayloadAttributesV2> for JsonPayloadAttributes
impl From<JsonPayloadAttributesV2> for JsonPayloadAttributes
Source§fn from(variant: JsonPayloadAttributesV2) -> Self
fn from(variant: JsonPayloadAttributesV2) -> Self
Converts to this type from the input type.
Source§impl From<PayloadAttributes> for JsonPayloadAttributes
impl From<PayloadAttributes> for JsonPayloadAttributes
Source§fn from(payload_atributes: PayloadAttributes) -> Self
fn from(payload_atributes: PayloadAttributes) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JsonPayloadAttributes
impl PartialEq for JsonPayloadAttributes
Source§impl Serialize for JsonPayloadAttributes
impl Serialize for JsonPayloadAttributes
impl StructuralPartialEq for JsonPayloadAttributes
Auto Trait Implementations§
impl Freeze for JsonPayloadAttributes
impl RefUnwindSafe for JsonPayloadAttributes
impl Send for JsonPayloadAttributes
impl Sync for JsonPayloadAttributes
impl Unpin for JsonPayloadAttributes
impl UnwindSafe for JsonPayloadAttributes
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more