Enum rule34::PostStatus
source · pub enum PostStatus {
Active,
Pending,
Deleted,
Flagged,
}
Expand description
A Post Status
Variants§
Active
Active, the default state.
Pending
Pending, probably waiting for moderator approval.
Deleted
Deleted, the post has been deleted and metadata will soon be purged.
Flagged
Flagged, the post is has been flagged for review by a moderator.
Trait Implementations§
source§impl Clone for PostStatus
impl Clone for PostStatus
source§fn clone(&self) -> PostStatus
fn clone(&self) -> PostStatus
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 PostStatus
impl Debug for PostStatus
source§impl<'de> Deserialize<'de> for PostStatus
impl<'de> Deserialize<'de> for PostStatus
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 Hash for PostStatus
impl Hash for PostStatus
source§impl PartialEq for PostStatus
impl PartialEq for PostStatus
source§fn eq(&self, other: &PostStatus) -> bool
fn eq(&self, other: &PostStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostStatus
impl Serialize for PostStatus
impl Copy for PostStatus
impl Eq for PostStatus
impl StructuralEq for PostStatus
impl StructuralPartialEq for PostStatus
Auto Trait Implementations§
impl RefUnwindSafe for PostStatus
impl Send for PostStatus
impl Sync for PostStatus
impl Unpin for PostStatus
impl UnwindSafe for PostStatus
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.