Struct burgundy::Path [−][src]
pub struct Path { /* fields omitted */ }
To make a Path
, you need to use the Domain
first.
From that you can generate Path
objects.
Methods
impl Path
[src]
impl Path
pub fn push(
self,
next: &impl Display
) -> Self
[src]
pub fn push(
self,
next: &impl Display
) -> Self
pub fn query_param(
self,
key: &str,
value: &impl Display
) -> Self
[src]
pub fn query_param(
self,
key: &str,
value: &impl Display
) -> Self
pub fn header(
&mut self,
key: &'static str,
value: &impl Display
)
[src]
pub fn header(
&mut self,
key: &'static str,
value: &impl Display
)
pub fn execute_as_json<T: DeserializeOwned>(self) -> Result<T, Error>
[src]
pub fn execute_as_json<T: DeserializeOwned>(self) -> Result<T, Error>
Executes the path, and deserializes what comes back.
pub fn execute_as_string(self) -> Result<String, Error>
[src]
pub fn execute_as_string(self) -> Result<String, Error>
Sends the request, returns the response as just a String.
Trait Implementations
impl Debug for Path
[src]
impl Debug for Path
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Path
[src]
impl Clone for Path
fn clone(&self) -> Path
[src]
fn clone(&self) -> Path
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Display for Path
[src]
impl<'a> Display for Path