pub struct AttachmentType {
pub id: u8,
pub name: AttachmentName,
}
Fields§
§id: u8
§name: AttachmentName
Implementations§
Source§impl AttachmentType
impl AttachmentType
pub fn with(id: u8, name: &'static str) -> AttachmentType
Trait Implementations§
Source§impl Clone for AttachmentType
impl Clone for AttachmentType
Source§fn clone(&self) -> AttachmentType
fn clone(&self) -> AttachmentType
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 AttachmentType
impl Debug for AttachmentType
Source§impl<'de> Deserialize<'de> for AttachmentType
impl<'de> Deserialize<'de> for AttachmentType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AttachmentType
impl Hash for AttachmentType
Source§impl PartialEq for AttachmentType
impl PartialEq for AttachmentType
Source§impl Serialize for AttachmentType
impl Serialize for AttachmentType
Source§impl StrictDecode for AttachmentType
impl StrictDecode for AttachmentType
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for AttachmentType
impl StrictDumb for AttachmentType
fn strict_dumb() -> Self
Source§impl StrictEncode for AttachmentType
impl StrictEncode for AttachmentType
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictStruct for AttachmentType
impl StrictStruct for AttachmentType
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for AttachmentType
impl StrictType for AttachmentType
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB21
fn strict_name() -> Option<TypeName>
impl Eq for AttachmentType
impl StrictProduct for AttachmentType
impl StructuralPartialEq for AttachmentType
Auto Trait Implementations§
impl Freeze for AttachmentType
impl RefUnwindSafe for AttachmentType
impl Send for AttachmentType
impl Sync for AttachmentType
impl Unpin for AttachmentType
impl UnwindSafe for AttachmentType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.