pub struct ServerConfig { /* private fields */ }Implementations§
Source§impl ServerConfig
impl ServerConfig
pub fn command(command: impl Into<String>) -> ServerConfig
pub fn url(url: impl Into<String>) -> ServerConfig
pub fn arg(self, arg: impl Into<String>) -> ServerConfig
pub fn args( self, args: impl IntoIterator<Item = impl Into<String>>, ) -> ServerConfig
pub fn header( self, name: impl Into<String>, value: impl Into<String>, ) -> ServerConfig
pub fn auth_provider( self, provider: impl Fn() -> Result<BTreeMap<String, String>, Error> + Send + Sync + 'static, ) -> ServerConfig
pub fn oauth_app_name(self, app_name: impl Into<String>) -> ServerConfig
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe for ServerConfig
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