pub struct AssetChangeNtfMsg {
pub account_id: Option<u64>,
pub market: Option<u32>,
pub version: Option<u64>,
pub ntf_type: Option<u32>,
pub request_id: Option<String>,
pub cid: Option<u64>,
pub asset_change_log: Option<AssetChangeLog>,
pub ftrace_context: Option<String>,
}Fields§
§account_id: Option<u64>账户号码
market: Option<u32>市场
version: Option<u64>资产版本号
ntf_type: Option<u32>通知类型,见NtfType枚举
request_id: Option<String>请求ID,表示此变更事件的唯一ID
cid: Option<u64>资产变更用户
asset_change_log: Option<AssetChangeLog>资产变更流水
ftrace_context: Option<String>跟踪上下文
Implementations§
Source§impl AssetChangeNtfMsg
impl AssetChangeNtfMsg
Sourcepub fn account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn market(&self) -> u32
pub fn market(&self) -> u32
Returns the value of market, or the default value if market is unset.
Sourcepub fn version(&self) -> u64
pub fn version(&self) -> u64
Returns the value of version, or the default value if version is unset.
Sourcepub fn ntf_type(&self) -> u32
pub fn ntf_type(&self) -> u32
Returns the value of ntf_type, or the default value if ntf_type is unset.
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Returns the value of request_id, or the default value if request_id is unset.
Sourcepub fn ftrace_context(&self) -> &str
pub fn ftrace_context(&self) -> &str
Returns the value of ftrace_context, or the default value if ftrace_context is unset.
Trait Implementations§
Source§impl Clone for AssetChangeNtfMsg
impl Clone for AssetChangeNtfMsg
Source§fn clone(&self) -> AssetChangeNtfMsg
fn clone(&self) -> AssetChangeNtfMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetChangeNtfMsg
impl Debug for AssetChangeNtfMsg
Source§impl Default for AssetChangeNtfMsg
impl Default for AssetChangeNtfMsg
Source§impl Message for AssetChangeNtfMsg
impl Message for AssetChangeNtfMsg
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AssetChangeNtfMsg
impl PartialEq for AssetChangeNtfMsg
impl StructuralPartialEq for AssetChangeNtfMsg
Auto Trait Implementations§
impl Freeze for AssetChangeNtfMsg
impl RefUnwindSafe for AssetChangeNtfMsg
impl Send for AssetChangeNtfMsg
impl Sync for AssetChangeNtfMsg
impl Unpin for AssetChangeNtfMsg
impl UnsafeUnpin for AssetChangeNtfMsg
impl UnwindSafe for AssetChangeNtfMsg
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