pub struct Config {
pub server: String,
}Expand description
Resolved configuration for a single command invocation.
Fields§
§server: StringThe fully-resolved server URL (or shortcut-expanded URL).
Implementations§
Source§impl Config
impl Config
Sourcepub fn resolve(server: Option<&str>) -> Result<Self, Diagnostic>
pub fn resolve(server: Option<&str>) -> Result<Self, Diagnostic>
Resolve the active server from the collapsed Option<&str>.
server is the value after clap has merged --server and
DSP_SERVER (including any .env values dotenvy loaded at startup).
None means the user provided nothing — that’s a usage error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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