pub struct GurtConfigBuilder { /* private fields */ }Implementations§
Source§impl GurtConfigBuilder
impl GurtConfigBuilder
pub fn new() -> Self
pub fn host<S: Into<String>>(self, host: S) -> Self
pub fn port(self, port: u16) -> Self
pub fn base_directory<P: Into<PathBuf>>(self, dir: P) -> Self
pub fn verbose(self, verbose: bool) -> Self
pub fn tls_config(self, cert_path: PathBuf, key_path: PathBuf) -> Self
pub fn logging_config(self, config: LoggingConfig) -> Self
pub fn security_config(self, config: SecurityConfig) -> Self
pub fn error_pages_config(self, config: ErrorPagesConfig) -> Self
pub fn headers(self, headers: HashMap<String, String>) -> Self
pub fn from_file<P: AsRef<Path>>(self, path: P) -> Result<Self>
pub fn merge_cli_args(self, cli_args: &ServeCommand) -> Self
pub fn build(self) -> Result<GurtConfig>
Trait Implementations§
Source§impl Default for GurtConfigBuilder
impl Default for GurtConfigBuilder
Source§fn default() -> GurtConfigBuilder
fn default() -> GurtConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GurtConfigBuilder
impl RefUnwindSafe for GurtConfigBuilder
impl Send for GurtConfigBuilder
impl Sync for GurtConfigBuilder
impl Unpin for GurtConfigBuilder
impl UnsafeUnpin for GurtConfigBuilder
impl UnwindSafe for GurtConfigBuilder
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