Enum dofus_protocol::game::common::DialogType
source · #[repr(i32)]pub enum DialogType {
Show 16 variants
DialogBook = 0,
DialogDialog = 1,
DialogLockable = 2,
DialogPurchasable = 3,
DialogGuildInvitation = 4,
DialogGuildCreate = 5,
DialogGuildRename = 6,
DialogMarriage = 7,
DialogDungeonMeeting = 8,
DialogSpellForget = 9,
DialogTeleporter = 10,
DialogExchange = 11,
DialogAllianceInvitation = 12,
DialogAllianceCreate = 13,
DialogAllianceRename = 14,
DialogHavenbagMeeting = 15,
}
Variants§
DialogBook = 0
DialogDialog = 1
DialogLockable = 2
DialogPurchasable = 3
DialogGuildInvitation = 4
DialogGuildCreate = 5
DialogGuildRename = 6
DialogMarriage = 7
DialogDungeonMeeting = 8
DialogSpellForget = 9
DialogTeleporter = 10
DialogExchange = 11
DialogAllianceInvitation = 12
DialogAllianceCreate = 13
DialogAllianceRename = 14
DialogHavenbagMeeting = 15
Implementations§
source§impl DialogType
impl DialogType
source§impl DialogType
impl DialogType
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 DialogType
impl Clone for DialogType
source§fn clone(&self) -> DialogType
fn clone(&self) -> DialogType
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 DialogType
impl Debug for DialogType
source§impl Default for DialogType
impl Default for DialogType
source§fn default() -> DialogType
fn default() -> DialogType
Returns the “default value” for a type. Read more
source§impl From<DialogType> for i32
impl From<DialogType> for i32
source§fn from(value: DialogType) -> i32
fn from(value: DialogType) -> i32
Converts to this type from the input type.
source§impl Hash for DialogType
impl Hash for DialogType
source§impl Ord for DialogType
impl Ord for DialogType
source§fn cmp(&self, other: &DialogType) -> Ordering
fn cmp(&self, other: &DialogType) -> 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 DialogType
impl PartialEq for DialogType
source§impl PartialOrd for DialogType
impl PartialOrd for DialogType
source§impl TryFrom<i32> for DialogType
impl TryFrom<i32> for DialogType
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<DialogType, UnknownEnumValue>
fn try_from(value: i32) -> Result<DialogType, UnknownEnumValue>
Performs the conversion.
impl Copy for DialogType
impl Eq for DialogType
impl StructuralPartialEq for DialogType
Auto Trait Implementations§
impl Freeze for DialogType
impl RefUnwindSafe for DialogType
impl Send for DialogType
impl Sync for DialogType
impl Unpin for DialogType
impl UnwindSafe for DialogType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)