Enum backend::models::pulsar::RelationData [−][src]
pub enum RelationData {
ActivateLike(i64),
DeactivateLike(i64),
ActivateCollection(i64),
DeactivateCollection(i64),
ActivateFollow(i64),
DeactivateFollow(i64),
}Expand description
User relation operation sent to task executor
Example of request of frontend: {"ActivateLike":10} or {"DeactivateFollow": 10}, where 10 is the post_id or burrow_id
Fields
RelationData::ActivateLike: activate likeRelationData::DeactivateLike: deactivate likeRelationData::ActivateCollection: activate collectionRelationData::DeactivateCollection: deactivate collectionRelationData::ActivateFollow: activate followRelationData::DeactivateFollow: deactivate follow
Variants
ActivateLike(i64)Tuple Fields of ActivateLike
0: i64DeactivateLike(i64)Tuple Fields of DeactivateLike
0: i64ActivateCollection(i64)Tuple Fields of ActivateCollection
0: i64DeactivateCollection(i64)Tuple Fields of DeactivateCollection
0: i64ActivateFollow(i64)Tuple Fields of ActivateFollow
0: i64DeactivateFollow(i64)Tuple Fields of DeactivateFollow
0: i64Implementations
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for RelationData
impl Send for RelationData
impl Sync for RelationData
impl Unpin for RelationData
impl UnwindSafe for RelationData
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more