[][src]Struct logdna_client::request::TemplateBuilder

pub struct TemplateBuilder { /* fields omitted */ }

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]

Set the charset field

pub fn content<T>(&mut self, content: T) -> &mut Self where
    HeaderValue: HttpTryFrom<T>, 
[src]

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,