pub struct Aheader {
pub addr: String,
pub public_key: SignedPublicKey,
pub prefer_encrypt: EncryptPreference,
}
Expand description
Autocrypt header
Fields§
§addr: String
§public_key: SignedPublicKey
§prefer_encrypt: EncryptPreference
Implementations§
source§impl Aheader
impl Aheader
sourcepub fn new(
addr: String,
public_key: SignedPublicKey,
prefer_encrypt: EncryptPreference,
) -> Self
pub fn new( addr: String, public_key: SignedPublicKey, prefer_encrypt: EncryptPreference, ) -> Self
Creates new autocrypt header
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Aheader
impl RefUnwindSafe for Aheader
impl Send for Aheader
impl Sync for Aheader
impl Unpin for Aheader
impl UnwindSafe for Aheader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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