pub enum MultipleChoiceOptionType {
None,
Standard,
}Expand description
Represents the type of Multiple choice option. “None of the above” has a special type for example.
Variants§
None
Choice that represents selecting none of the options; still counts toward quorum and allows proposals with all bad options to be voted against.
Standard
Trait Implementations§
source§impl Clone for MultipleChoiceOptionType
impl Clone for MultipleChoiceOptionType
source§fn clone(&self) -> MultipleChoiceOptionType
fn clone(&self) -> MultipleChoiceOptionType
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 MultipleChoiceOptionType
impl Debug for MultipleChoiceOptionType
source§impl<'de> Deserialize<'de> for MultipleChoiceOptionType
impl<'de> Deserialize<'de> for MultipleChoiceOptionType
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 JsonSchema for MultipleChoiceOptionType
impl JsonSchema for MultipleChoiceOptionType
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
§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<MultipleChoiceOptionType> for MultipleChoiceOptionType
impl PartialEq<MultipleChoiceOptionType> for MultipleChoiceOptionType
source§fn eq(&self, other: &MultipleChoiceOptionType) -> bool
fn eq(&self, other: &MultipleChoiceOptionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MultipleChoiceOptionType
impl Serialize for MultipleChoiceOptionType
impl StructuralPartialEq for MultipleChoiceOptionType
Auto Trait Implementations§
impl RefUnwindSafe for MultipleChoiceOptionType
impl Send for MultipleChoiceOptionType
impl Sync for MultipleChoiceOptionType
impl Unpin for MultipleChoiceOptionType
impl UnwindSafe for MultipleChoiceOptionType
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