pub struct UcRequest {
pub method: HttpMethod,
pub path: String,
pub query: Vec<(String, String)>,
pub headers: Vec<(String, String)>,
pub body: Option<Vec<u8>>,
}Expand description
A request the UcClient transport must perform. path is relative to the
workspace host, which the concrete client owns (so this crate never carries a
URL); query/headers are ordered key/value pairs.
Fields§
§method: HttpMethodThe HTTP method.
path: StringHost-relative path, e.g. /api/2.1/unity-catalog/tables/main.bronze.orders.
query: Vec<(String, String)>Query parameters, appended in order.
headers: Vec<(String, String)>Request headers, sent in order.
body: Option<Vec<u8>>Optional request body.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UcRequest
impl RefUnwindSafe for UcRequest
impl Send for UcRequest
impl Sync for UcRequest
impl Unpin for UcRequest
impl UnwindSafe for UcRequest
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