pub struct Topics {
pub wire: String,
pub hashtags: Vec<String>,
}Fields§
§wire: StringImplementations§
Source§impl Topics
impl Topics
pub const MAX_LABEL_BYTES: usize = 32
pub const MAX_HASHTAGS: usize = 8
pub fn validate(&self) -> Result<(), Error>
pub fn validate_label(label: &str) -> Result<(), Error>
pub fn encode_body(&self, text: &str) -> Result<Vec<u8>, Error>
pub fn decode_body(bytes: &[u8]) -> Result<(Self, String), Error>
Trait Implementations§
impl Eq for Topics
impl StructuralPartialEq for Topics
Auto Trait Implementations§
impl Freeze for Topics
impl RefUnwindSafe for Topics
impl Send for Topics
impl Sync for Topics
impl Unpin for Topics
impl UnsafeUnpin for Topics
impl UnwindSafe for Topics
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