Struct identity_iota::iota::block::signature::dto::Ed25519SignatureDto
source · pub struct Ed25519SignatureDto {
pub kind: u8,
pub public_key: String,
pub signature: String,
}
Expand description
Defines an Ed25519 signature.
Fields§
§kind: u8
§public_key: String
§signature: String
Trait Implementations§
source§impl Clone for Ed25519SignatureDto
impl Clone for Ed25519SignatureDto
source§fn clone(&self) -> Ed25519SignatureDto
fn clone(&self) -> Ed25519SignatureDto
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 Ed25519SignatureDto
impl Debug for Ed25519SignatureDto
source§impl<'de> Deserialize<'de> for Ed25519SignatureDto
impl<'de> Deserialize<'de> for Ed25519SignatureDto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Ed25519SignatureDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Ed25519SignatureDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&Ed25519Signature> for Ed25519SignatureDto
impl From<&Ed25519Signature> for Ed25519SignatureDto
source§fn from(value: &Ed25519Signature) -> Ed25519SignatureDto
fn from(value: &Ed25519Signature) -> Ed25519SignatureDto
Converts to this type from the input type.
source§impl PartialEq for Ed25519SignatureDto
impl PartialEq for Ed25519SignatureDto
source§fn eq(&self, other: &Ed25519SignatureDto) -> bool
fn eq(&self, other: &Ed25519SignatureDto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Ed25519SignatureDto
impl Serialize for Ed25519SignatureDto
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<Ed25519SignatureDto> for Ed25519Signature
impl TryFrom<Ed25519SignatureDto> for Ed25519Signature
source§fn try_from(
value: Ed25519SignatureDto
) -> Result<Ed25519Signature, <Ed25519Signature as TryFrom<Ed25519SignatureDto>>::Error>
fn try_from( value: Ed25519SignatureDto ) -> Result<Ed25519Signature, <Ed25519Signature as TryFrom<Ed25519SignatureDto>>::Error>
Performs the conversion.
impl Eq for Ed25519SignatureDto
impl StructuralPartialEq for Ed25519SignatureDto
Auto Trait Implementations§
impl Freeze for Ed25519SignatureDto
impl RefUnwindSafe for Ed25519SignatureDto
impl Send for Ed25519SignatureDto
impl Sync for Ed25519SignatureDto
impl Unpin for Ed25519SignatureDto
impl UnwindSafe for Ed25519SignatureDto
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
source§fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from a string of JSON text.source§fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from bytes of JSON text.source§fn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize
Self
from a serde_json::Value
.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> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
source§fn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize
self
as a serde_json::Value
.