pub struct ProxyViteOptions {
pub port: Option<u16>,
pub working_directory: String,
pub log_level: Option<Level>,
}Fields§
§port: Option<u16>§working_directory: String§log_level: Option<Level>Implementations§
Source§impl ProxyViteOptions
impl ProxyViteOptions
pub fn new() -> Self
pub fn port(self, port: u16) -> Self
pub fn working_directory(self, working_directory: impl AsRef<str>) -> Self
pub fn log_level(self, log_level: Level) -> Self
pub fn disable_logging(self) -> Self
pub fn update_port(port: u16) -> Result<()>
pub fn build(self) -> Result<()>
pub fn global() -> Self
Trait Implementations§
Source§impl Clone for ProxyViteOptions
impl Clone for ProxyViteOptions
Source§fn clone(&self) -> ProxyViteOptions
fn clone(&self) -> ProxyViteOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ProxyViteOptions
impl RefUnwindSafe for ProxyViteOptions
impl Send for ProxyViteOptions
impl Sync for ProxyViteOptions
impl Unpin for ProxyViteOptions
impl UnwindSafe for ProxyViteOptions
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