Struct shuttle_core::DecoratedSignature
[−]
[src]
pub struct DecoratedSignature { /* fields omitted */ }
A Signature
together with the last 4 bytes of the public key.
Methods
impl DecoratedSignature
[src]
fn new(hint: SignatureHint, signature: Signature) -> DecoratedSignature
[src]
Create a new DecoratedSignature
with hint
and signature
.
fn hint(&self) -> &SignatureHint
[src]
Return the decorated signature hint
.
fn signature(&self) -> &Signature
[src]
Return the decorated signature signature
.
Trait Implementations
impl Debug for DecoratedSignature
[src]
impl Clone for DecoratedSignature
[src]
fn clone(&self) -> DecoratedSignature
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DecoratedSignature
[src]
fn eq(&self, __arg_0: &DecoratedSignature) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecoratedSignature) -> bool
[src]
This method tests for !=
.
impl Eq for DecoratedSignature
[src]
impl ToXdr<DecoratedSignature> for DecoratedSignature
[src]
fn to_xdr(&self) -> Result<DecoratedSignature>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Serialize to the writer w
.
fn to_base64(&self) -> Result<String>
[src]
Serialize to base64.
impl<'de> FromXdr<'de, DecoratedSignature> for DecoratedSignature
[src]
fn from_xdr(sig: DecoratedSignature) -> Result<DecoratedSignature>
[src]
Build the type from the XDR other
object .
fn from_reader<R: Read>(r: &mut R) -> Result<Self>
[src]
Deserialize from a reader r
.
fn from_base64(input: &str) -> Result<Self>
[src]
Deserialize from base64.