pub struct PushMessageResp {Show 28 fields
pub old_taskid: i64,
pub biz: i32,
pub type: i32,
pub title: String,
pub summary: String,
pub img: String,
pub link: String,
pub position: i32,
pub duration: i32,
pub expire: i64,
pub taskid: String,
pub page_black_list: Vec<PageBlackList>,
pub page_view: Vec<PageView>,
pub target_resource: Option<TargetResource>,
pub image_frame: i32,
pub image_marker: i32,
pub image_position: i32,
pub job: i64,
pub msg_source: String,
pub hide_arrow: bool,
pub metadata: HashMap<String, String>,
pub pure_img: String,
pub display_type: i32,
pub pop_type: i32,
pub reserve: i32,
pub level: i32,
pub query: bool,
pub bid: i32,
}Expand description
Fields§
§old_taskid: i64§biz: i32§type: i32§title: String§summary: String§img: String§link: String§position: i32§duration: i32§expire: i64§taskid: String§page_black_list: Vec<PageBlackList>§page_view: Vec<PageView>§target_resource: Option<TargetResource>§image_frame: i32§image_marker: i32§image_position: i32§job: i64§msg_source: String§hide_arrow: bool§metadata: HashMap<String, String>§pure_img: String§display_type: i32§pop_type: i32§reserve: i32§level: i32§query: bool§bid: i32Implementations§
Source§impl PushMessageResp
impl PushMessageResp
Sourcepub fn biz(&self) -> Biz
pub fn biz(&self) -> Biz
Returns the enum value of biz, or the default if the field is set to an invalid enum value.
Sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn position(&self) -> Position
pub fn position(&self) -> Position
Returns the enum value of position, or the default if the field is set to an invalid enum value.
Sourcepub fn set_position(&mut self, value: Position)
pub fn set_position(&mut self, value: Position)
Sets position to the provided enum value.
Sourcepub fn image_frame(&self) -> ImageFrame
pub fn image_frame(&self) -> ImageFrame
Returns the enum value of image_frame, or the default if the field is set to an invalid enum value.
Sourcepub fn set_image_frame(&mut self, value: ImageFrame)
pub fn set_image_frame(&mut self, value: ImageFrame)
Sets image_frame to the provided enum value.
Sourcepub fn image_marker(&self) -> ImageMarker
pub fn image_marker(&self) -> ImageMarker
Returns the enum value of image_marker, or the default if the field is set to an invalid enum value.
Sourcepub fn set_image_marker(&mut self, value: ImageMarker)
pub fn set_image_marker(&mut self, value: ImageMarker)
Sets image_marker to the provided enum value.
Sourcepub fn image_position(&self) -> ImagePosition
pub fn image_position(&self) -> ImagePosition
Returns the enum value of image_position, or the default if the field is set to an invalid enum value.
Sourcepub fn set_image_position(&mut self, value: ImagePosition)
pub fn set_image_position(&mut self, value: ImagePosition)
Sets image_position to the provided enum value.
Sourcepub fn display_type(&self) -> DisplayType
pub fn display_type(&self) -> DisplayType
Returns the enum value of display_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_display_type(&mut self, value: DisplayType)
pub fn set_display_type(&mut self, value: DisplayType)
Sets display_type to the provided enum value.
Sourcepub fn pop_type(&self) -> PopType
pub fn pop_type(&self) -> PopType
Returns the enum value of pop_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_pop_type(&mut self, value: PopType)
pub fn set_pop_type(&mut self, value: PopType)
Sets pop_type to the provided enum value.
Trait Implementations§
Source§impl Clone for PushMessageResp
impl Clone for PushMessageResp
Source§fn clone(&self) -> PushMessageResp
fn clone(&self) -> PushMessageResp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PushMessageResp
impl Debug for PushMessageResp
Source§impl Default for PushMessageResp
impl Default for PushMessageResp
Source§impl Message for PushMessageResp
impl Message for PushMessageResp
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for PushMessageResp
impl PartialEq for PushMessageResp
impl StructuralPartialEq for PushMessageResp
Auto Trait Implementations§
impl Freeze for PushMessageResp
impl RefUnwindSafe for PushMessageResp
impl Send for PushMessageResp
impl Sync for PushMessageResp
impl Unpin for PushMessageResp
impl UnwindSafe for PushMessageResp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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