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
sourceimpl 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
sourceimpl Clone for StandaloneSignature
impl Clone for StandaloneSignature
sourcefn clone(&self) -> StandaloneSignature
fn clone(&self) -> StandaloneSignature
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 Debug for StandaloneSignature
impl Debug for StandaloneSignature
sourceimpl Deserializable for StandaloneSignature
impl Deserializable for StandaloneSignature
sourcefn from_packets<'a>(
packets: impl Iterator<Item = Packet> + 'a
) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
fn from_packets<'a>(
packets: impl Iterator<Item = Packet> + 'a
) -> Box<dyn Iterator<Item = Result<Self>> + 'a>
Parse a signature.
sourcefn from_bytes(bytes: impl Read) -> Result<Self>
fn from_bytes(bytes: impl Read) -> Result<Self>
Parse a single byte encoded composition.
sourcefn 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.
sourcefn 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.
sourcefn 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more