pub struct FlexImage {Show 17 fields
pub type: Option<String>,
pub url: String,
pub flex: Option<i32>,
pub margin: Option<String>,
pub position: Option<Position>,
pub offset_top: Option<String>,
pub offset_bottom: Option<String>,
pub offset_start: Option<String>,
pub offset_end: Option<String>,
pub align: Option<Align>,
pub gravity: Option<Gravity>,
pub size: Option<String>,
pub aspect_ratio: Option<String>,
pub aspect_mode: Option<AspectMode>,
pub background_color: Option<String>,
pub action: Option<Box<Action>>,
pub animated: Option<bool>,
}Fields§
§type: Option<String>§url: StringImage URL (Max character limit: 2000) Protocol: HTTPS (TLS 1.2 or later) Image format: JPEG or PNG Maximum image size: 1024×1024 pixels Maximum file size: 10 MB (300 KB when the animated property is true)
flex: Option<i32>The ratio of the width or height of this component within the parent box.
margin: Option<String>The minimum amount of space to include before this component in its parent container.
position: Option<Position>Reference for offsetTop, offsetBottom, offsetStart, and offsetEnd. Specify one of the following values: relative: Use the previous box as reference. absolute: Use the top left of parent element as reference. The default value is relative.
offset_top: Option<String>Offset.
offset_bottom: Option<String>Offset.
offset_start: Option<String>Offset.
offset_end: Option<String>Offset.
align: Option<Align>Alignment style in horizontal direction.
gravity: Option<Gravity>Alignment style in vertical direction.
size: Option<String>The maximum image width. This is md by default.
aspect_ratio: Option<String>Aspect ratio of the image. {width}:{height} format. Specify the value of {width} and {height} in the range from 1 to 100000. However, you cannot set {height} to a value that is more than three times the value of {width}. The default value is 1:1.
aspect_mode: Option<AspectMode>The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match.
background_color: Option<String>Background color of the image. Use a hexadecimal color code.
action: Option<Box<Action>>§animated: Option<bool>When this is true, an animated image (APNG) plays. You can specify a value of true up to 10 images in a single message. You can’t send messages that exceed this limit. This is false by default. Animated images larger than 300 KB aren’t played back.