pub enum DevicePlatform {
Web,
PC,
H5,
Android,
IOS,
HarmonyOS,
Other(String),
}Expand description
设备平台类型
Variants§
Web
Web 浏览器
PC
PC 桌面应用(Windows、macOS、Linux)
H5
H5 移动网页
Android
Android 应用
IOS
iOS 应用
HarmonyOS
鸿蒙应用
Other(String)
其他平台
Implementations§
Trait Implementations§
Source§impl Clone for DevicePlatform
impl Clone for DevicePlatform
Source§fn clone(&self) -> DevicePlatform
fn clone(&self) -> DevicePlatform
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 DevicePlatform
impl Debug for DevicePlatform
Source§impl<'de> Deserialize<'de> for DevicePlatform
impl<'de> Deserialize<'de> for DevicePlatform
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
impl Eq for DevicePlatform
Source§impl Hash for DevicePlatform
impl Hash for DevicePlatform
Source§impl PartialEq for DevicePlatform
impl PartialEq for DevicePlatform
Source§fn eq(&self, other: &DevicePlatform) -> bool
fn eq(&self, other: &DevicePlatform) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DevicePlatform
impl Serialize for DevicePlatform
impl StructuralPartialEq for DevicePlatform
Auto Trait Implementations§
impl Freeze for DevicePlatform
impl RefUnwindSafe for DevicePlatform
impl Send for DevicePlatform
impl Sync for DevicePlatform
impl Unpin for DevicePlatform
impl UnsafeUnpin for DevicePlatform
impl UnwindSafe for DevicePlatform
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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