[][src]Enum coolq_sdk_rust::targets::cqcode::CQImage

pub enum CQImage {
    Default(String),
    File(String),
    Base64(String),
    Binary(Vec<u8>),
}

Variants

Default(String)

默认发送data\image{image}。"xx.jpg"

File(String)

发送指定目录下的{image}。该目录必须可读。"/home/me/xx.jpg"

Base64(String)

发送base64编码的图片。"JXU2MThCJXU4QkY0JXU4QkREJXVGRjBDJXU1NDNCJXU2MjEx"

Binary(Vec<u8>)

发送二进制图片。"很明显,这个没办法演示给你看"

Methods

impl CQImage[src]

pub async fn to_file_name<'_>(&'_ self) -> Result<String>[src]

This is supported on feature="enhanced-cqcode" only.

有阻塞版本to_file_name_blocking

pub fn to_file_name_blocking(&self) -> Result<String>[src]

This is supported on feature="enhanced-cqcode" only.

有异步版本to_file_name

Trait Implementations

impl Clone for CQImage[src]

impl Debug for CQImage[src]

Auto Trait Implementations

impl RefUnwindSafe for CQImage

impl Send for CQImage

impl Sync for CQImage

impl Unpin for CQImage

impl UnwindSafe for CQImage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.