pub struct APIBuilder { /* private fields */ }
Implementations§
Source§impl APIBuilder
impl APIBuilder
pub fn new() -> Self
pub fn build(self) -> API
Sourcepub fn with_setting_engine(self, setting_engine: SettingEngine) -> Self
pub fn with_setting_engine(self, setting_engine: SettingEngine) -> Self
WithSettingEngine allows providing a SettingEngine to the API. Settings should not be changed after passing the engine to an API.
Sourcepub fn with_media_engine(self, media_engine: MediaEngine) -> Self
pub fn with_media_engine(self, media_engine: MediaEngine) -> Self
WithMediaEngine allows providing a MediaEngine to the API. Settings can be changed after passing the engine to an API.
Sourcepub fn with_interceptor_registry(self, interceptor_registry: Registry) -> Self
pub fn with_interceptor_registry(self, interceptor_registry: Registry) -> Self
with_interceptor_registry allows providing Interceptors to the API. Settings should not be changed after passing the registry to an API.
Trait Implementations§
Source§impl Default for APIBuilder
impl Default for APIBuilder
Source§fn default() -> APIBuilder
fn default() -> APIBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for APIBuilder
impl !RefUnwindSafe for APIBuilder
impl Send for APIBuilder
impl Sync for APIBuilder
impl Unpin for APIBuilder
impl !UnwindSafe for APIBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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