pub enum PlatformKind {
Android,
Ios,
Web,
HarmonyOs,
MacOs,
Windows,
Linux,
Rdp,
}Expand description
Platform discriminator of a device (spine §4.1 PlatformKind).
Variants§
Android
Android device.
Ios
iOS device.
Web
Web browser target.
HarmonyOs
HarmonyOS device.
MacOs
macOS desktop.
Windows
Windows desktop.
Linux
Linux desktop.
Rdp
RDP-attached desktop.
Trait Implementations§
Source§impl Clone for PlatformKind
impl Clone for PlatformKind
Source§fn clone(&self) -> PlatformKind
fn clone(&self) -> PlatformKind
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 moreimpl Copy for PlatformKind
Source§impl Debug for PlatformKind
impl Debug for PlatformKind
Source§impl<'de> Deserialize<'de> for PlatformKind
impl<'de> Deserialize<'de> for PlatformKind
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 PlatformKind
Source§impl Hash for PlatformKind
impl Hash for PlatformKind
Source§impl JsonSchema for PlatformKind
impl JsonSchema for PlatformKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for PlatformKind
impl Ord for PlatformKind
Source§fn cmp(&self, other: &PlatformKind) -> Ordering
fn cmp(&self, other: &PlatformKind) -> Ordering
1.21.0 (const: unstable) · 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 PlatformKind
impl PartialEq for PlatformKind
Source§impl PartialOrd for PlatformKind
impl PartialOrd for PlatformKind
Source§impl Serialize for PlatformKind
impl Serialize for PlatformKind
impl StructuralPartialEq for PlatformKind
Auto Trait Implementations§
impl Freeze for PlatformKind
impl RefUnwindSafe for PlatformKind
impl Send for PlatformKind
impl Sync for PlatformKind
impl Unpin for PlatformKind
impl UnsafeUnpin for PlatformKind
impl UnwindSafe for PlatformKind
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