pub struct AttachmentType {
pub id: u8,
pub name: AttachmentName,
}Fields§
§id: u8§name: AttachmentNameImplementations§
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 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 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<AttachmentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttachmentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttachmentType
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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for AttachmentType
impl StrictDecode for AttachmentType
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<AttachmentType, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for AttachmentType
impl StrictDumb for AttachmentType
fn strict_dumb() -> AttachmentType
Source§impl StrictEncode for AttachmentType
impl StrictEncode for AttachmentType
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
impl StrictProduct for AttachmentType
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_RGB_CONTRACT
fn strict_name() -> Option<TypeName>
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.