Struct cardano_serialization_lib::address::Address
source · pub struct Address(_);
Implementations§
source§impl Address
impl Address
pub fn from_bytes(data: Vec<u8>) -> Result<Address, DeserializeError>
source§impl Address
impl Address
pub fn to_hex(&self) -> String
pub fn from_hex(hex_str: &str) -> Result<Address, JsError>
pub fn to_bytes(&self) -> Vec<u8>
pub fn to_bech32(&self, prefix: Option<String>) -> Result<String, JsError>
pub fn from_bech32(bech_str: &str) -> Result<Address, JsError>
pub fn network_id(&self) -> Result<u8, JsError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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 Address
impl Deserialize for Address
fn deserialize<R: BufRead>( raw: &mut Deserializer<R> ) -> Result<Self, DeserializeError>
source§impl JsonSchema for Address
impl JsonSchema for Address
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 Address
impl Ord for Address
source§impl PartialEq<Address> for Address
impl PartialEq<Address> for Address
source§impl PartialOrd<Address> for Address
impl PartialOrd<Address> for Address
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