pub struct VersionResult {
pub cli_version: &'static str,
pub gateway: Option<GatewayInfo>,
pub warnings: Vec<String>,
}Expand description
version output model (declaration order = golden field order).
gateway/warnings are omitted when absent/empty, so a fresh install
keeps the bare {"cli_version": …} shape it has always had.
Fields§
§cli_version: &'static strThe CLI’s own version.
gateway: Option<GatewayInfo>Gateway info when a profile resolved AND the gateway answered within
the minimum. JSON-null-equivalent: the field is simply absent when
there is nothing to report (Value["gateway"] is null either way).
warnings: Vec<String>Non-fatal degradation notes (e.g. gateway unreachable).
Trait Implementations§
Source§impl Debug for VersionResult
impl Debug for VersionResult
Auto Trait Implementations§
impl Freeze for VersionResult
impl RefUnwindSafe for VersionResult
impl Send for VersionResult
impl Sync for VersionResult
impl Unpin for VersionResult
impl UnsafeUnpin for VersionResult
impl UnwindSafe for VersionResult
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