Struct cardano_serialization_lib::crypto::Vkeywitness
source · [−]pub struct Vkeywitness { /* private fields */ }Implementations
sourceimpl Vkeywitness
impl Vkeywitness
pub fn from_bytes(bytes: Vec<u8>) -> Result<Vkeywitness, DeserializeError>
sourceimpl Vkeywitness
impl Vkeywitness
pub fn new(vkey: &Vkey, signature: &Ed25519Signature) -> Self
pub fn vkey(&self) -> Vkey
pub fn signature(&self) -> Ed25519Signature
Trait Implementations
sourceimpl Clone for Vkeywitness
impl Clone for Vkeywitness
sourcefn clone(&self) -> Vkeywitness
fn clone(&self) -> Vkeywitness
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 Deserialize for Vkeywitness
impl Deserialize for Vkeywitness
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
sourceimpl Serialize for Vkeywitness
impl Serialize for Vkeywitness
fn serialize<'se, W: Write>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
Auto Trait Implementations
impl RefUnwindSafe for Vkeywitness
impl Send for Vkeywitness
impl Sync for Vkeywitness
impl Unpin for Vkeywitness
impl UnwindSafe for Vkeywitness
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