pub struct Payload {
pub body: Vec<u8>,
pub content_type: &'static str,
pub filename: Option<String>,
pub hashes: BTreeMap<String, String>,
}Expand description
What to send for path: body, content type, single-file name, warnings.
Fields§
§body: Vec<u8>§content_type: &'static str§filename: Option<String>§hashes: BTreeMap<String, String>The sha256 of each file sent, by its path in the pushed folder ("" for a single file).
Auto Trait Implementations§
impl Forget for Payload
impl Freeze for Payload
impl Move for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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