pub enum ContentClass {
Reply,
New,
Mention,
Dm,
Channel,
BulkSend,
Broadcast,
Mutation,
}Expand description
The closed content-class vocabulary (§7.1.6), as a TYPE.
Same repair, same reasons as ChannelKind above: the wire field is a
String and nothing refused values outside the closed set. See that
type’s documentation for the full account.
Variants§
Reply
Wire value Reply.
New
Wire value New.
Mention
Wire value Mention.
Dm
Wire value DM — both letters uppercase on the wire.
Channel
Wire value Channel.
BulkSend
Wire value BulkSend.
Broadcast
Wire value Broadcast.
Mutation
Wire value Mutation — this act CHANGES STATE rather than carrying a
message (RFC 0002). It is required to match at both the mandate and
envelope layer (§6.2), so a notarized mutation is recorded as one
inside the signature.
Implementations§
Trait Implementations§
Source§impl Clone for ContentClass
impl Clone for ContentClass
impl Copy for ContentClass
Source§impl Debug for ContentClass
impl Debug for ContentClass
Source§impl<'de> Deserialize<'de> for ContentClass
impl<'de> Deserialize<'de> for ContentClass
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ContentClass
impl Display for ContentClass
impl Eq for ContentClass
Source§impl FromStr for ContentClass
impl FromStr for ContentClass
Source§impl PartialEq for ContentClass
impl PartialEq for ContentClass
Source§impl Serialize for ContentClass
impl Serialize for ContentClass
impl StructuralPartialEq for ContentClass
Auto Trait Implementations§
impl Freeze for ContentClass
impl RefUnwindSafe for ContentClass
impl Send for ContentClass
impl Sync for ContentClass
impl Unpin for ContentClass
impl UnsafeUnpin for ContentClass
impl UnwindSafe for ContentClass
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