pub struct Path { /* private fields */ }
Expand description
To make a Path
, you need to use the Domain
first.
From that you can generate Path
objects.
Implementations§
source§impl Path
impl Path
pub fn push(self, next: &impl Display) -> Self
pub fn push_partial(self, next: &impl Display) -> Self
pub fn query(self, key: &str, value: &impl Display) -> Self
pub fn header(&mut self, key: &'static str, value: &impl Display)
sourcepub fn execute_as_json<B: Serialize + ?Sized, R: DeserializeOwned>(
self,
body: Option<&B>
) -> Result<R, Error>
pub fn execute_as_json<B: Serialize + ?Sized, R: DeserializeOwned>(
self,
body: Option<&B>
) -> Result<R, Error>
Executes the path, and deserializes what comes back.