Struct line_messaging_api_rust::flex_message::components::Component [−][src]
pub struct Component { pub kind: ComponentType, }
Fields
kind: ComponentType
Methods
impl Component
[src]
impl Component
pub fn new(kind: ComponentType) -> Component
[src]
pub fn new(kind: ComponentType) -> Component
pub fn create_empty() -> Component
[src]
pub fn create_empty() -> Component
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub 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
) -> Component
pub fn create_filler() -> Component
[src]
pub fn create_filler() -> Component
pub 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
) -> Component
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
) -> 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
) -> Component
pub fn create_separator(margin: &str, color: &str) -> Component
[src]
pub fn create_separator(margin: &str, color: &str) -> Component
pub fn create_spacer(size: &str) -> Component
[src]
pub fn create_spacer(size: &str) -> Component
pub 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