pub enum UserAttributeSubpacket {
Image {
header_version: u8,
format: ImageFormat,
image_data: Vec<u8>,
},
Unknown {
subpacket_type: u8,
data: Vec<u8>,
},
}Expand description
A subpacket within a User Attribute packet.
Variants§
Image
Image subpacket (type 1).
Fields
§
format: ImageFormatImage encoding format.
Unknown
Unknown subpacket type.
Trait Implementations§
Source§impl Clone for UserAttributeSubpacket
impl Clone for UserAttributeSubpacket
Source§fn clone(&self) -> UserAttributeSubpacket
fn clone(&self) -> UserAttributeSubpacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UserAttributeSubpacket
impl RefUnwindSafe for UserAttributeSubpacket
impl Send for UserAttributeSubpacket
impl Sync for UserAttributeSubpacket
impl Unpin for UserAttributeSubpacket
impl UnsafeUnpin for UserAttributeSubpacket
impl UnwindSafe for UserAttributeSubpacket
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