pub struct StComment {Show 16 fields
pub id: Option<String>,
pub post_user: Option<StUser>,
pub create_time: Option<u64>,
pub content: Option<String>,
pub reply_count: Option<u32>,
pub vec_reply: Vec<StReply>,
pub busi_data: Option<Vec<u8>>,
pub like_info: Option<StLike>,
pub type_flag: Option<u32>,
pub at_uin_list: Vec<String>,
pub type_flag2: Option<u32>,
pub create_time_ns: Option<u64>,
pub store_ext_info: Vec<CommonEntry>,
pub third_id: Option<String>,
pub source_type: Option<u32>,
pub rich_contents: Option<StRichText>,
}Fields
id: Option<String>post_user: Option<StUser>create_time: Option<u64>content: Option<String>reply_count: Option<u32>vec_reply: Vec<StReply>busi_data: Option<Vec<u8>>like_info: Option<StLike>type_flag: Option<u32>at_uin_list: Vec<String>type_flag2: Option<u32>create_time_ns: Option<u64>store_ext_info: Vec<CommonEntry>third_id: Option<String>source_type: Option<u32>rich_contents: Option<StRichText>Implementations
sourceimpl StComment
impl StComment
sourcepub fn create_time(&self) -> u64
pub fn create_time(&self) -> u64
Returns the value of create_time, or the default value if create_time is unset.
sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
Returns the value of content, or the default value if content is unset.
sourcepub fn reply_count(&self) -> u32
pub fn reply_count(&self) -> u32
Returns the value of reply_count, or the default value if reply_count is unset.
sourcepub fn busi_data(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn busi_data(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Returns the value of busi_data, or the default value if busi_data is unset.
sourcepub fn type_flag(&self) -> u32
pub fn type_flag(&self) -> u32
Returns the value of type_flag, or the default value if type_flag is unset.
sourcepub fn type_flag2(&self) -> u32
pub fn type_flag2(&self) -> u32
Returns the value of type_flag2, or the default value if type_flag2 is unset.
sourcepub fn create_time_ns(&self) -> u64
pub fn create_time_ns(&self) -> u64
Returns the value of create_time_ns, or the default value if create_time_ns is unset.
sourcepub fn third_id(&self) -> &str
pub fn third_id(&self) -> &str
Returns the value of third_id, or the default value if third_id is unset.
sourcepub fn source_type(&self) -> u32
pub fn source_type(&self) -> u32
Returns the value of source_type, or the default value if source_type is unset.
Trait Implementations
sourceimpl Message for StComment
impl Message for StComment
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
impl StructuralPartialEq for StComment
Auto Trait Implementations
impl RefUnwindSafe for StComment
impl Send for StComment
impl Sync for StComment
impl Unpin for StComment
impl UnwindSafe for StComment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<B> PbToBytes<B> for B where
B: Message + Default,
impl<B> PbToBytes<B> for B where
B: Message + Default,
fn to_bytes(&self) -> Bytes
fn from_bytes(buf: &[u8]) -> Result<B, DecodeError>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more