pub struct ServeConfig {
pub provider: ProviderKind,
pub upstream: Url,
pub proxy_port: u16,
pub api_port: u16,
pub data_dir: PathBuf,
pub redact: bool,
pub cors_allow: Option<String>,
pub api_server: bool,
}Fields§
§provider: ProviderKind§upstream: Url§proxy_port: u16§api_port: u16§data_dir: PathBuf§redact: bool§cors_allow: Option<String>§api_server: boolImplementations§
Source§impl ServeConfig
impl ServeConfig
pub fn new(provider: ProviderKind, upstream: Url, data_dir: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
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 ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe for ServeConfig
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