pub struct ServerInfo {
pub user_agent: String,
pub codex_home: Option<String>,
pub platform_family: Option<String>,
pub platform_os: Option<String>,
}Expand description
What the server reported about itself in the initialize response.
Fields§
§user_agent: StringThe server’s user agent string, which includes the CLI version.
codex_home: Option<String>The Codex home directory the server is using.
platform_family: Option<String>unix or windows.
platform_os: Option<String>The operating system name.
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
Source§impl Default for ServerInfo
impl Default for ServerInfo
Source§impl<'de> Deserialize<'de> for ServerInfowhere
ServerInfo: Default,
impl<'de> Deserialize<'de> for ServerInfowhere
ServerInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServerInfo
Source§impl PartialEq for ServerInfo
impl PartialEq for ServerInfo
impl StructuralPartialEq for ServerInfo
Auto Trait Implementations§
impl Forget for ServerInfo
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnsafeUnpin for ServerInfo
impl UnwindSafe for ServerInfo
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