Struct cardano_serialization_lib::address::RewardAddress
source · pub struct RewardAddress { /* private fields */ }
Implementations§
source§impl RewardAddress
impl RewardAddress
pub fn new(network: u8, payment: &StakeCredential) -> Self
pub fn payment_cred(&self) -> StakeCredential
pub fn to_address(&self) -> Address
pub fn from_address(addr: &Address) -> Option<RewardAddress>
Trait Implementations§
source§impl Clone for RewardAddress
impl Clone for RewardAddress
source§fn clone(&self) -> RewardAddress
fn clone(&self) -> RewardAddress
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 Debug for RewardAddress
impl Debug for RewardAddress
source§impl<'de> Deserialize<'de> for RewardAddress
impl<'de> Deserialize<'de> for RewardAddress
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 Deserialize for RewardAddress
impl Deserialize for RewardAddress
fn deserialize<R: BufRead>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
source§impl Hash for RewardAddress
impl Hash for RewardAddress
source§impl JsonSchema for RewardAddress
impl JsonSchema for RewardAddress
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for RewardAddress
impl Ord for RewardAddress
source§fn cmp(&self, other: &RewardAddress) -> Ordering
fn cmp(&self, other: &RewardAddress) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<RewardAddress> for RewardAddress
impl PartialEq<RewardAddress> for RewardAddress
source§fn eq(&self, other: &RewardAddress) -> bool
fn eq(&self, other: &RewardAddress) -> bool
source§impl PartialOrd<RewardAddress> for RewardAddress
impl PartialOrd<RewardAddress> for RewardAddress
source§fn partial_cmp(&self, other: &RewardAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &RewardAddress) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more