[][src]Trait psn_api_rs::MultiPart

pub trait MultiPart {
    fn message_multipart_body(
        &self,
        boundary: &str,
        message: Option<&str>,
        file_path: Option<&str>
    ) -> Vec<u8>; fn generate_boundary() -> String { ... } }

Required methods

fn message_multipart_body(
    &self,
    boundary: &str,
    message: Option<&str>,
    file_path: Option<&str>
) -> Vec<u8>

take option<&str> for message and file path to determine if the message is a text only or a image attached one. pass both as None will result in generating a new message thread body.

Loading content...

Provided methods

Loading content...

Implementors

impl MultiPart for PSN[src]

Loading content...