Trait apisdk::WithCarrier

source ·
pub trait WithCarrier {
    // Required methods
    fn with_carrier(self, carrier: Carrier) -> Self;
    fn with_header_name(self, name: impl ToString) -> Self;
    fn with_query_param(self, name: impl ToString) -> Self;
}
Expand description

This trait is used to update carrier

Required Methods§

source

fn with_carrier(self, carrier: Carrier) -> Self

Update instance to use Carrier

source

fn with_header_name(self, name: impl ToString) -> Self

Update instance to use Header

  • name: the name of header
source

fn with_query_param(self, name: impl ToString) -> Self

Update instance to use QueryParam

  • name: the name of query param

Object Safety§

This trait is not object safe.

Implementors§