[−][src]Struct logdna_client::request::TemplateBuilder
Used to build an instance of a RequestTemplate
Methods
impl TemplateBuilder
[src]
pub fn new() -> Self
[src]
Constructs a new TemplateBuilder
pub fn method<T: Into<Method>>(&mut self, method: T) -> &mut Self
[src]
Set the method field
pub fn charset<T>(&mut self, charset: T) -> &mut Self where
HeaderValue: HttpTryFrom<T>,
[src]
HeaderValue: HttpTryFrom<T>,
Set the charset field
pub fn content<T>(&mut self, content: T) -> &mut Self where
HeaderValue: HttpTryFrom<T>,
[src]
HeaderValue: HttpTryFrom<T>,
Set the content field
pub fn encoding<T: Into<Encoding>>(&mut self, encoding: T) -> &mut Self
[src]
Set the encoding field
pub fn schema<T: Into<Schema>>(&mut self, schema: T) -> &mut Self
[src]
Set the schema field
pub fn host<T: Into<String>>(&mut self, host: T) -> &mut Self
[src]
Set the host field
pub fn endpoint<T: Into<String>>(&mut self, endpoint: T) -> &mut Self
[src]
Set the endpoint field
pub fn api_key<T: Into<String>>(&mut self, api_key: T) -> &mut Self
[src]
Set the api_key field
pub fn params<T: Into<Params>>(&mut self, params: T) -> &mut Self
[src]
Set the params field
pub fn build(&mut self) -> Result<RequestTemplate, TemplateError>
[src]
Build a RequestTemplate using the current builder
Auto Trait Implementations
impl Send for TemplateBuilder
impl Sync for TemplateBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,