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 like
  • RelationData::DeactivateLike: deactivate like
  • RelationData::ActivateCollection: activate collection
  • RelationData::DeactivateCollection: deactivate collection
  • RelationData::ActivateFollow: activate follow
  • RelationData::DeactivateFollow: deactivate follow

Variants

ActivateLike(i64)

Tuple Fields of ActivateLike

0: i64
DeactivateLike(i64)

Tuple Fields of DeactivateLike

0: i64
ActivateCollection(i64)

Tuple Fields of ActivateCollection

0: i64
DeactivateCollection(i64)

Tuple Fields of DeactivateCollection

0: i64
ActivateFollow(i64)

Tuple Fields of ActivateFollow

0: i64
DeactivateFollow(i64)

Tuple Fields of DeactivateFollow

0: i64

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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