pub struct ServerInfo {
pub protocol_version: String,
pub capabilities: Json,
pub server: Implementation,
pub instructions: Option<String>,
}Expand description
What initialize answers with — the client’s picture of the server.
Fields§
§protocol_version: String§capabilities: JsonLeft as raw JSON: capabilities grow every revision, and a client should pass through what it does not recognise rather than dropping it.
server: Implementation§instructions: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
Source§impl PartialEq for ServerInfo
impl PartialEq for ServerInfo
impl StructuralPartialEq for ServerInfo
Auto Trait Implementations§
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