Struct cardano_serialization_lib::address::StakeCredential
source · [−]pub struct StakeCredential(_);Implementations
sourceimpl StakeCredential
impl StakeCredential
pub fn from_keyhash(hash: &Ed25519KeyHash) -> Self
pub fn from_scripthash(hash: &ScriptHash) -> Self
pub fn to_keyhash(&self) -> Option<Ed25519KeyHash>
pub fn to_scripthash(&self) -> Option<ScriptHash>
pub fn kind(&self) -> StakeCredKind
sourceimpl StakeCredential
impl StakeCredential
pub fn from_bytes(bytes: Vec<u8>) -> Result<StakeCredential, DeserializeError>
Trait Implementations
sourceimpl Clone for StakeCredential
impl Clone for StakeCredential
sourcefn clone(&self) -> StakeCredential
fn clone(&self) -> StakeCredential
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StakeCredential
impl Debug for StakeCredential
sourceimpl Deserialize for StakeCredential
impl Deserialize for StakeCredential
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
sourceimpl Hash for StakeCredential
impl Hash for StakeCredential
sourceimpl Ord for StakeCredential
impl Ord for StakeCredential
sourceimpl PartialEq<StakeCredential> for StakeCredential
impl PartialEq<StakeCredential> for StakeCredential
sourcefn eq(&self, other: &StakeCredential) -> bool
fn eq(&self, other: &StakeCredential) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StakeCredential) -> bool
fn ne(&self, other: &StakeCredential) -> bool
This method tests for !=.
sourceimpl PartialOrd<StakeCredential> for StakeCredential
impl PartialOrd<StakeCredential> for StakeCredential
sourcefn partial_cmp(&self, other: &StakeCredential) -> Option<Ordering>
fn partial_cmp(&self, other: &StakeCredential) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
sourceimpl Serialize for StakeCredential
impl Serialize for StakeCredential
fn serialize<'se, W: Write>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
impl Eq for StakeCredential
impl StructuralEq for StakeCredential
impl StructuralPartialEq for StakeCredential
Auto Trait Implementations
impl RefUnwindSafe for StakeCredential
impl Send for StakeCredential
impl Sync for StakeCredential
impl Unpin for StakeCredential
impl UnwindSafe for StakeCredential
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more