#[repr(i32)]pub enum MessageType {
Show 13 variants
None = 0,
CastAdd = 1,
CastRemove = 2,
ReactionAdd = 3,
ReactionRemove = 4,
LinkAdd = 5,
LinkRemove = 6,
VerificationAddEthAddress = 7,
VerificationRemove = 8,
UserDataAdd = 11,
UsernameProof = 12,
FrameAction = 13,
LinkCompactState = 14,
}Expand description
- Type of the MessageBody
Variants§
None = 0
CastAdd = 1
Add a new Cast
CastRemove = 2
Remove an existing Cast
ReactionAdd = 3
Add a Reaction to a Cast
ReactionRemove = 4
Remove a Reaction from a Cast
LinkAdd = 5
Add a new Link
LinkRemove = 6
Remove an existing Link
VerificationAddEthAddress = 7
Add a Verification of an Ethereum Address
VerificationRemove = 8
Remove a Verification
UserDataAdd = 11
Deprecated MESSAGE_TYPE_SIGNER_ADD = 9; // Add a new Ed25519 key pair that signs messages for a user MESSAGE_TYPE_SIGNER_REMOVE = 10; // Remove an Ed25519 key pair that signs messages for a user
Add metadata about a user
UsernameProof = 12
Add or replace a username proof
FrameAction = 13
A Farcaster Frame action
LinkCompactState = 14
Link Compaction State Message
Implementations§
Source§impl MessageType
impl MessageType
Source§impl MessageType
impl MessageType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
Source§impl Default for MessageType
impl Default for MessageType
Source§fn default() -> MessageType
fn default() -> MessageType
impl Eq for MessageType
Source§impl From<MessageType> for i32
impl From<MessageType> for i32
Source§fn from(value: MessageType) -> i32
fn from(value: MessageType) -> i32
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl Ord for MessageType
impl Ord for MessageType
Source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
impl StructuralPartialEq for MessageType
Source§impl TryFrom<i32> for MessageType
impl TryFrom<i32> for MessageType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<MessageType, UnknownEnumValue>
fn try_from(value: i32) -> Result<MessageType, UnknownEnumValue>
Source§impl TryInto<MessageType> for String
impl TryInto<MessageType> for String
Source§type Error = NonExistentTypeError
type Error = NonExistentTypeError
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request