pub enum Call<'a> {
Api {
method: Method,
path: String,
body: Option<Value>,
},
Upload {
url: &'a str,
file: &'a Path,
},
}Expand description
One request, fully described, with no host in it.
Variants§
Api
path is under /1.3 and carries its query (/server/{uuid}?…).
body is None for a GET/DELETE; a bodyless POST sends {}.
Upload
The medium’s PUT to the URL an import answered. The URL is a
credential; see Call::line.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Call<'a>
Auto Trait Implementations§
impl<'a> Freeze for Call<'a>
impl<'a> RefUnwindSafe for Call<'a>
impl<'a> Send for Call<'a>
impl<'a> Sync for Call<'a>
impl<'a> Unpin for Call<'a>
impl<'a> UnsafeUnpin for Call<'a>
impl<'a> UnwindSafe for Call<'a>
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