Trait opendal::raw::Part

source ·
pub trait Part: Sized + 'static {
    const TYPE: &'static str;

    // Required methods
    fn format(self) -> Buffer ;
    fn parse(s: &str) -> Result<Self>;
}
Expand description

Part is a trait for multipart part.

Required Associated Constants§

source

const TYPE: &'static str

TYPE is the type of multipart.

Current available types are: form-data and mixed

Required Methods§

source

fn format(self) -> Buffer

format will generates the bytes.

source

fn parse(s: &str) -> Result<Self>

parse will parse the bytes into a part.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Part for FormDataPart

source§

const TYPE: &'static str = "form-data"

source§

impl Part for MixedPart

source§

const TYPE: &'static str = "mixed"