pub enum JoinRule<S: BosStr = DefaultStr> {
Anyone,
FollowedByOwner,
Other(S),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for JoinRule<S>
impl<'de, S: Deserialize<'de> + BosStr> Deserialize<'de> for JoinRule<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
impl<S: Eq + BosStr> Eq for JoinRule<S>
Source§impl<S> IntoStatic for JoinRule<S>
impl<S> IntoStatic for JoinRule<S>
Source§impl<S: PartialEq + BosStr> PartialEq for JoinRule<S>
impl<S: PartialEq + BosStr> PartialEq for JoinRule<S>
impl<S: PartialEq + BosStr> StructuralPartialEq for JoinRule<S>
Auto Trait Implementations§
impl<S> Freeze for JoinRule<S>where
S: Freeze,
impl<S> RefUnwindSafe for JoinRule<S>where
S: RefUnwindSafe,
impl<S> Send for JoinRule<S>where
S: Send,
impl<S> Sync for JoinRule<S>where
S: Sync,
impl<S> Unpin for JoinRule<S>where
S: Unpin,
impl<S> UnsafeUnpin for JoinRule<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for JoinRule<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.