Struct pgp::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) -> Self
pub fn to_armored_writer( &self, writer: &mut impl Write, headers: Option<&BTreeMap<String, String>> ) -> Result<()>
pub fn to_armored_bytes( &self, headers: Option<&BTreeMap<String, String>> ) -> Result<Vec<u8>>
pub fn to_armored_string( &self, headers: Option<&BTreeMap<String, String>> ) -> Result<String>
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: Iterator<Item = Result<Packet>> + 'a>(
packets: Peekable<I>
) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
fn from_packets<'a, I: Iterator<Item = Result<Packet>> + 'a>( packets: Peekable<I> ) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
Parse a signature.
source§fn from_bytes(bytes: impl Read) -> Result<Self>
fn from_bytes(bytes: impl Read) -> Result<Self>
Parse a single byte encoded composition.
source§fn from_string(input: &str) -> Result<(Self, BTreeMap<String, String>)>
fn from_string(input: &str) -> Result<(Self, BTreeMap<String, String>)>
Parse a single armor encoded composition.
source§fn from_string_many<'a>(
input: &'a str
) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)>
fn from_string_many<'a>( input: &'a str ) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)>
Parse an armor encoded list of compositions.
source§fn from_armor_single<R: Read + Seek>(
input: R
) -> Result<(Self, BTreeMap<String, String>)>
fn from_armor_single<R: Read + Seek>( input: R ) -> Result<(Self, BTreeMap<String, String>)>
Armored ascii data.
source§fn from_armor_many<'a, R: Read + Seek + 'a>(
input: R
) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)>
fn from_armor_many<'a, R: Read + Seek + 'a>( input: R ) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)>
Armored ascii data.
source§fn from_bytes_many<'a>(
bytes: impl Read + 'a
) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
fn from_bytes_many<'a>( bytes: impl Read + 'a ) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
Parse a list of compositions in raw byte format.
Auto Trait Implementations§
impl Freeze for StandaloneSignature
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