pub enum FilterablePreferenceInclude<S: BosStr = DefaultStr> {
All,
Follows,
Other(S),
}Variants§
Implementations§
Source§impl<S: BosStr> FilterablePreferenceInclude<S>
impl<S: BosStr> FilterablePreferenceInclude<S>
pub fn as_str(&self) -> &str
Sourcepub fn from_value(s: S) -> Self
pub fn from_value(s: S) -> Self
Construct from a string-like value, matching known values.
Trait Implementations§
Source§impl<S: Clone + BosStr> Clone for FilterablePreferenceInclude<S>
impl<S: Clone + BosStr> Clone for FilterablePreferenceInclude<S>
Source§fn clone(&self) -> FilterablePreferenceInclude<S>
fn clone(&self) -> FilterablePreferenceInclude<S>
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 moreSource§impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for FilterablePreferenceInclude<S>
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for FilterablePreferenceInclude<S>
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<S: BosStr> Display for FilterablePreferenceInclude<S>
impl<S: BosStr> Display for FilterablePreferenceInclude<S>
impl<S: Eq + BosStr> Eq for FilterablePreferenceInclude<S>
Source§impl<S> IntoStatic for FilterablePreferenceInclude<S>
impl<S> IntoStatic for FilterablePreferenceInclude<S>
Source§type Output = FilterablePreferenceInclude<<S as IntoStatic>::Output>
type Output = FilterablePreferenceInclude<<S as IntoStatic>::Output>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<S: PartialEq + BosStr> PartialEq for FilterablePreferenceInclude<S>
impl<S: PartialEq + BosStr> PartialEq for FilterablePreferenceInclude<S>
Source§fn eq(&self, other: &FilterablePreferenceInclude<S>) -> bool
fn eq(&self, other: &FilterablePreferenceInclude<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S: BosStr> Serialize for FilterablePreferenceInclude<S>
impl<S: BosStr> Serialize for FilterablePreferenceInclude<S>
impl<S: BosStr> StructuralPartialEq for FilterablePreferenceInclude<S>
Auto Trait Implementations§
impl<S> Freeze for FilterablePreferenceInclude<S>where
S: Freeze,
impl<S> RefUnwindSafe for FilterablePreferenceInclude<S>where
S: RefUnwindSafe,
impl<S> Send for FilterablePreferenceInclude<S>where
S: Send,
impl<S> Sync for FilterablePreferenceInclude<S>where
S: Sync,
impl<S> Unpin for FilterablePreferenceInclude<S>where
S: Unpin,
impl<S> UnsafeUnpin for FilterablePreferenceInclude<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FilterablePreferenceInclude<S>where
S: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.