Struct pgp::native::composed::StandaloneSignature
source · pub struct StandaloneSignature {
pub signature: Signature,
}
Expand description
Standalone signature as defined by the cleartext framework.
Fields§
§signature: Signature
Implementations§
source§impl StandaloneSignature
impl StandaloneSignature
pub fn new(signature: Signature) -> StandaloneSignature
pub fn to_armored_writer( &self, writer: &mut impl Write, headers: Option<&BTreeMap<String, String, Global>> ) -> Result<(), Error>
pub fn to_armored_bytes( &self, headers: Option<&BTreeMap<String, String, Global>> ) -> Result<Vec<u8, Global>, Error>
pub fn to_armored_string( &self, headers: Option<&BTreeMap<String, String, Global>> ) -> Result<String, Error>
Trait Implementations§
source§impl Clone for StandaloneSignature
impl Clone for StandaloneSignature
source§fn clone(&self) -> StandaloneSignature
fn clone(&self) -> StandaloneSignature
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 StandaloneSignature
impl Debug for StandaloneSignature
source§impl Deserializable for StandaloneSignature
impl Deserializable for StandaloneSignature
source§fn from_packets<'a, I>(
packets: Peekable<I>
) -> Box<dyn Iterator<Item = Result<StandaloneSignature, Error>> + 'a, Global>where
I: Iterator<Item = Packet> + 'a,
fn from_packets<'a, I>( packets: Peekable<I> ) -> Box<dyn Iterator<Item = Result<StandaloneSignature, Error>> + 'a, Global>where I: Iterator<Item = Packet> + 'a,
Parse a signature.
source§fn from_bytes(bytes: impl Read) -> Result<Self, Error>
fn from_bytes(bytes: impl Read) -> Result<Self, Error>
Parse a single byte encoded composition.
source§fn from_string(
input: &str
) -> Result<(Self, BTreeMap<String, String, Global>), Error>
fn from_string( input: &str ) -> Result<(Self, BTreeMap<String, String, Global>), Error>
Parse a single armor encoded composition.
source§fn from_string_many<'a>(
input: &'a str
) -> Result<(Box<dyn Iterator<Item = Result<Self, Error>> + 'a, Global>, BTreeMap<String, String, Global>), Error>
fn from_string_many<'a>( input: &'a str ) -> Result<(Box<dyn Iterator<Item = Result<Self, Error>> + 'a, Global>, BTreeMap<String, String, Global>), Error>
Parse an armor encoded list of compositions.
source§fn from_armor_single<R>(
input: R
) -> Result<(Self, BTreeMap<String, String, Global>), Error>where
R: Read + Seek,
fn from_armor_single<R>( input: R ) -> Result<(Self, BTreeMap<String, String, Global>), Error>where R: Read + Seek,
Armored ascii data.
Auto Trait Implementations§
impl RefUnwindSafe for StandaloneSignature
impl Send for StandaloneSignature
impl Sync for StandaloneSignature
impl Unpin for StandaloneSignature
impl UnwindSafe for StandaloneSignature
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