Struct rgbstd::interface::rgb21::AttachmentType
source · 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 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<AttachmentType> for AttachmentType
impl PartialEq<AttachmentType> for AttachmentType
source§fn eq(&self, other: &AttachmentType) -> bool
fn eq(&self, other: &AttachmentType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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 StructuralEq for AttachmentType
impl StructuralPartialEq for AttachmentType
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.