#[repr(i32)]pub enum AttachmentType {
Unknown = 0,
Operator = 1,
Viewer = 2,
}
Expand description
§Attachment type
This refers to the manner of attachment.
Variants§
Implementations§
Source§impl AttachmentType
impl AttachmentType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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 Default for AttachmentType
impl Default for AttachmentType
Source§fn default() -> AttachmentType
fn default() -> AttachmentType
Returns the “default value” for a type. Read more
Source§impl From<AttachmentType> for i32
impl From<AttachmentType> for i32
Source§fn from(value: AttachmentType) -> i32
fn from(value: AttachmentType) -> i32
Converts to this type from the input type.
Source§impl Hash for AttachmentType
impl Hash for AttachmentType
Source§impl Ord for AttachmentType
impl Ord for AttachmentType
Source§fn cmp(&self, other: &AttachmentType) -> Ordering
fn cmp(&self, other: &AttachmentType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttachmentType
impl PartialEq for AttachmentType
Source§impl PartialOrd for AttachmentType
impl PartialOrd for AttachmentType
Source§impl TryFrom<i32> for AttachmentType
impl TryFrom<i32> for AttachmentType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AttachmentType, UnknownEnumValue>
fn try_from(value: i32) -> Result<AttachmentType, UnknownEnumValue>
Performs the conversion.
impl Copy for AttachmentType
impl Eq 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