Struct vit_servicing_station_lib::db::models::vote_options::VoteOptions
source · pub struct VoteOptions(pub VoteOptionsMap);
Tuple Fields§
§0: VoteOptionsMap
Implementations§
source§impl VoteOptions
impl VoteOptions
pub fn parse_coma_separated_value(csv: &str) -> VoteOptions
pub fn as_csv_string(&self) -> String
pub fn from_vec_string(values: Vec<String>) -> VoteOptions
pub fn to_vec_string(&self) -> Vec<String>
Trait Implementations§
source§impl Clone for VoteOptions
impl Clone for VoteOptions
source§fn clone(&self) -> VoteOptions
fn clone(&self) -> VoteOptions
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 VoteOptions
impl Debug for VoteOptions
source§impl<'de> Deserialize<'de> for VoteOptions
impl<'de> Deserialize<'de> for VoteOptions
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 PartialEq<VoteOptions> for VoteOptions
impl PartialEq<VoteOptions> for VoteOptions
source§fn eq(&self, other: &VoteOptions) -> bool
fn eq(&self, other: &VoteOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VoteOptions
impl Serialize for VoteOptions
impl Eq for VoteOptions
impl StructuralEq for VoteOptions
impl StructuralPartialEq for VoteOptions
Auto Trait Implementations§
impl RefUnwindSafe for VoteOptions
impl Send for VoteOptions
impl Sync for VoteOptions
impl Unpin for VoteOptions
impl UnwindSafe for VoteOptions
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.