Struct line_messaging_api_rust::flex_message::components::Component [−][src]
pub struct Component {
pub kind: ComponentType,
}Fields
kind: ComponentType
Methods
impl Component[src]
impl Componentpub fn new(kind: ComponentType) -> Component[src]
pub fn new(kind: ComponentType) -> Componentpub fn create_empty() -> Component[src]
pub fn create_empty() -> Componentpub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolpub fn create_box(
layout: &str,
contents: Vec<Component>,
flex: u64,
spacing: &str,
margin: &str
) -> Component[src]
pub fn create_box(
layout: &str,
contents: Vec<Component>,
flex: u64,
spacing: &str,
margin: &str
) -> Componentpub fn create_filler() -> Component[src]
pub fn create_filler() -> Componentpub fn create_icon(
url: &str,
margin: &str,
size: &str,
aspect_ratio: &str
) -> Component[src]
pub fn create_icon(
url: &str,
margin: &str,
size: &str,
aspect_ratio: &str
) -> Componentpub fn create_image(
url: &str,
flex: u64,
margin: &str,
align: &str,
gravity: &str,
size: &str,
aspect_ratio: &str,
aspect_mode: &str,
background_color: &str,
action: Action
) -> Component[src]
pub fn create_image(
url: &str,
flex: u64,
margin: &str,
align: &str,
gravity: &str,
size: &str,
aspect_ratio: &str,
aspect_mode: &str,
background_color: &str,
action: Action
) -> Componentpub fn create_separator(margin: &str, color: &str) -> Component[src]
pub fn create_separator(margin: &str, color: &str) -> Componentpub fn create_spacer(size: &str) -> Component[src]
pub fn create_spacer(size: &str) -> Componentpub fn create_text(
text: &str,
flex: u64,
margin: &str,
size: &str,
align: &str,
gravity: &str,
wrap: bool,
weight: &str,
color: &str
) -> Component[src]
pub fn create_text(
text: &str,
flex: u64,
margin: &str,
size: &str,
align: &str,
gravity: &str,
wrap: bool,
weight: &str,
color: &str
) -> Component