Enum slack_chat_api::types::FieldsOneOf
source · pub enum FieldsOneOf {
Fields(Fields),
StringVector(Vec<String>),
}Expand description
All of the following types:
FieldsVec<String>
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 FieldsOneOf
impl Clone for FieldsOneOf
source§fn clone(&self) -> FieldsOneOf
fn clone(&self) -> FieldsOneOf
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 FieldsOneOf
impl Debug for FieldsOneOf
source§impl<'de> Deserialize<'de> for FieldsOneOf
impl<'de> Deserialize<'de> for FieldsOneOf
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<FieldsOneOf> for Vec<String>
impl From<FieldsOneOf> for Vec<String>
source§fn from(f: FieldsOneOf) -> Self
fn from(f: FieldsOneOf) -> Self
Converts to this type from the input type.
source§impl JsonSchema for FieldsOneOf
impl JsonSchema for FieldsOneOf
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<FieldsOneOf> for FieldsOneOf
impl PartialEq<FieldsOneOf> for FieldsOneOf
source§fn eq(&self, other: &FieldsOneOf) -> bool
fn eq(&self, other: &FieldsOneOf) -> bool
This method tests for
self and other values to be equal, and is used
by ==.