pub trait PartEncoder<Item> {
type Error: EncodeError;
// Required method
fn encode(
&mut self,
part: &mut PartBody,
part_number: PartNumber,
item: Item,
) -> Result<(), Self::Error>;
}Expand description
Encodes items in the body of a part upload request.
Required Associated Types§
Sourcetype Error: EncodeError
type Error: EncodeError
The type of value returned when encoding fails.
Required Methods§
Implementors§
Source§impl<E, Item> PartEncoder<Item> for FramedEncoder<E>
Available on crate feature tokio-util only.
impl<E, Item> PartEncoder<Item> for FramedEncoder<E>
Available on crate feature
tokio-util only.Source§impl<Item: AsRef<str>> PartEncoder<Item> for LinesEncoder
impl<Item: AsRef<str>> PartEncoder<Item> for LinesEncoder
type Error = Infallible
Source§impl<Item: Serialize> PartEncoder<Item> for CsvEncoder
Available on crate feature csv only.
impl<Item: Serialize> PartEncoder<Item> for CsvEncoder
Available on crate feature
csv only.