Struct line_messaging_api_rust::messages::LineMessage [−][src]
pub struct LineMessage {
pub kind: LineMessageType,
pub id: String,
}Fields
kind: LineMessageType
id: String
Methods
impl LineMessage[src]
impl LineMessagepub fn new(id: &str, kind: LineMessageType) -> LineMessage[src]
pub fn new(id: &str, kind: LineMessageType) -> LineMessagepub fn get_id(&self) -> String[src]
pub fn get_id(&self) -> Stringpub fn get_text(&self) -> Option<String>[src]
pub fn get_text(&self) -> Option<String>pub fn get_alt_text(&self) -> Option<String>[src]
pub fn get_alt_text(&self) -> Option<String>pub fn get_tempate(&self) -> Option<TemplateComponent>[src]
pub fn get_tempate(&self) -> Option<TemplateComponent>pub fn get_address(&self) -> Option<String>[src]
pub fn get_address(&self) -> Option<String>pub fn get_latitude(&self) -> Option<f64>[src]
pub fn get_latitude(&self) -> Option<f64>pub fn get_longitude(&self) -> Option<f64>[src]
pub fn get_longitude(&self) -> Option<f64>pub fn get_base_url(&self) -> Option<String>[src]
pub fn get_base_url(&self) -> Option<String>pub fn get_base_size(&self) -> Option<BaseSize>[src]
pub fn get_base_size(&self) -> Option<BaseSize>pub fn get_base_size_height(&self) -> Option<u64>[src]
pub fn get_base_size_height(&self) -> Option<u64>pub fn get_base_size_width(&self) -> Option<u64>[src]
pub fn get_base_size_width(&self) -> Option<u64>pub fn get_action(&self) -> Option<Vec<ImagemapAction>>[src]
pub fn get_action(&self) -> Option<Vec<ImagemapAction>>pub fn get_file_name(&self) -> Option<String>[src]
pub fn get_file_name(&self) -> Option<String>pub fn get_file_size(&self) -> Option<u64>[src]
pub fn get_file_size(&self) -> Option<u64>pub fn get_package_id(&self) -> Option<String>[src]
pub fn get_package_id(&self) -> Option<String>pub fn get_sticker_id(&self) -> Option<String>[src]
pub fn get_sticker_id(&self) -> Option<String>impl LineMessage[src]
impl LineMessagepub fn create_image(
id: &str,
original_content_url: &str,
preview_image_url: &str
) -> LineMessage[src]
pub fn create_image(
id: &str,
original_content_url: &str,
preview_image_url: &str
) -> LineMessagepub fn create_video(
id: &str,
original_content_url: &str,
preview_image_url: &str
) -> LineMessage[src]
pub fn create_video(
id: &str,
original_content_url: &str,
preview_image_url: &str
) -> LineMessagepub fn create_audio(
id: &str,
original_content_url: &str,
duration: u64
) -> LineMessage[src]
pub fn create_audio(
id: &str,
original_content_url: &str,
duration: u64
) -> LineMessagepub fn create_text(id: &str, text: &str) -> LineMessage[src]
pub fn create_text(id: &str, text: &str) -> LineMessagepub fn create_location(
id: &str,
title: &str,
address: &str,
latitude: f64,
longitude: f64
) -> LineMessage[src]
pub fn create_location(
id: &str,
title: &str,
address: &str,
latitude: f64,
longitude: f64
) -> LineMessagepub fn create_imagemap(
id: &str,
base_url: &str,
alt_text: &str,
height: u64,
width: u64,
actions: Vec<ImagemapAction>
) -> LineMessage[src]
pub fn create_imagemap(
id: &str,
base_url: &str,
alt_text: &str,
height: u64,
width: u64,
actions: Vec<ImagemapAction>
) -> LineMessagepub fn create_file(id: &str, file_name: &str, file_size: u64) -> LineMessage[src]
pub fn create_file(id: &str, file_name: &str, file_size: u64) -> LineMessagepub fn create_sticker(
id: &str,
package_id: &str,
sticker_id: &str
) -> LineMessage[src]
pub fn create_sticker(
id: &str,
package_id: &str,
sticker_id: &str
) -> LineMessagepub fn create_template(
id: &str,
alt_text: &str,
template: TemplateComponent
) -> LineMessage[src]
pub fn create_template(
id: &str,
alt_text: &str,
template: TemplateComponent
) -> LineMessagepub fn create_flex(
id: &str,
alt_text: &str,
contents: FlexContainer
) -> LineMessage[src]
pub fn create_flex(
id: &str,
alt_text: &str,
contents: FlexContainer
) -> LineMessageTrait Implementations
impl Clone for LineMessage[src]
impl Clone for LineMessagefn clone(&self) -> LineMessage[src]
fn clone(&self) -> LineMessageReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for LineMessage
impl Send for LineMessageimpl Sync for LineMessage
impl Sync for LineMessage