pub struct BackEndHandlerBuilder { /* private fields */ }Expand description
Builder for BackEndHandler
Implementations§
Source§impl BackEndHandlerBuilder
impl BackEndHandlerBuilder
Sourcepub fn new() -> BackEndHandlerBuilder
pub fn new() -> BackEndHandlerBuilder
Create a new BackEndHandler builder
Sourcepub fn with_provider(self, provider: Arc<dyn Provide + Send + Sync>) -> Self
pub fn with_provider(self, provider: Arc<dyn Provide + Send + Sync>) -> Self
Add a provider to the builder
Sourcepub fn with_converter(self, converter: Box<dyn Convert + Send + Sync>) -> Self
pub fn with_converter(self, converter: Box<dyn Convert + Send + Sync>) -> Self
Add a converter to the builder
Sourcepub fn with_provider_id(self, provider_id: ProviderId) -> Self
pub fn with_provider_id(self, provider_id: ProviderId) -> Self
Set the ID of the BackEndHandler
Sourcepub fn with_content_type(self, content_type: BodyType) -> Self
pub fn with_content_type(self, content_type: BodyType) -> Self
Set the content type that the BackEndHandler supports
Sourcepub fn with_accept_type(self, accept_type: BodyType) -> Self
pub fn with_accept_type(self, accept_type: BodyType) -> Self
Set the accept type that the BackEndHandler supports
Sourcepub fn build(self) -> Result<BackEndHandler>
pub fn build(self) -> Result<BackEndHandler>
Build into a BackEndHandler
Trait Implementations§
Source§impl Debug for BackEndHandlerBuilder
impl Debug for BackEndHandlerBuilder
Source§impl Default for BackEndHandlerBuilder
impl Default for BackEndHandlerBuilder
Source§fn default() -> BackEndHandlerBuilder
fn default() -> BackEndHandlerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackEndHandlerBuilder
impl !RefUnwindSafe for BackEndHandlerBuilder
impl Send for BackEndHandlerBuilder
impl Sync for BackEndHandlerBuilder
impl Unpin for BackEndHandlerBuilder
impl !UnwindSafe for BackEndHandlerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more