Enum octorust::types::PayloadOneOf
source · pub enum PayloadOneOf {
String(String),
Data(Data),
}
Expand description
All of the following types:
String
Data
You can easily convert this enum to the inner value with From
and Into
, as both are implemented for each type.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PayloadOneOf
impl Clone for PayloadOneOf
source§fn clone(&self) -> PayloadOneOf
fn clone(&self) -> PayloadOneOf
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 PayloadOneOf
impl Debug for PayloadOneOf
source§impl<'de> Deserialize<'de> for PayloadOneOf
impl<'de> Deserialize<'de> for PayloadOneOf
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 From<PayloadOneOf> for String
impl From<PayloadOneOf> for String
source§fn from(f: PayloadOneOf) -> Self
fn from(f: PayloadOneOf) -> Self
Converts to this type from the input type.
source§impl From<String> for PayloadOneOf
impl From<String> for PayloadOneOf
source§impl JsonSchema for PayloadOneOf
impl JsonSchema for PayloadOneOf
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<PayloadOneOf> for PayloadOneOf
impl PartialEq<PayloadOneOf> for PayloadOneOf
source§fn eq(&self, other: &PayloadOneOf) -> bool
fn eq(&self, other: &PayloadOneOf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.