pub enum BodyValue {
String(String),
Interpolation(String),
Object(ObjectBody),
Bytes(String),
Part(InlinePart),
}Expand description
A value inside an ObjectBody or multipart body.
Variants§
String(String)
A literal string.
Interpolation(String)
A string containing {{ var }} placeholders to interpolate at runtime.
Object(ObjectBody)
A nested object.
Bytes(String)
Hex-encoded raw bytes.
Part(InlinePart)
A multipart part.
Trait Implementations§
impl StructuralPartialEq for BodyValue
Auto Trait Implementations§
impl Freeze for BodyValue
impl RefUnwindSafe for BodyValue
impl Send for BodyValue
impl Sync for BodyValue
impl Unpin for BodyValue
impl UnsafeUnpin for BodyValue
impl UnwindSafe for BodyValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more