Struct nvim_oxi::types::ClientInfos
source · [−]#[non_exhaustive]pub struct ClientInfos {
pub attributes: HashMap<String, String>,
pub methods: HashMap<String, ClientMethod>,
pub name: String,
pub type: ClientType,
pub version: ClientVersion,
}Expand description
Informations about a remote RPC client.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attributes: HashMap<String, String>Arbitrary map of informal client properties. Suggested keys:
- “website”: client homepage URL (e.g. GitHub repository);
- “license”: license description (“Apache 2”, “GPLv3”, “MIT”, …);
- “logo”: URI or path to image.
methods: HashMap<String, ClientMethod>Builtin methods in the client, where map keys represent method names.
name: StringShort name for the connected client.
type: ClientTypeAdvertised type of remote client.
version: ClientVersionDescribes the client version.
Trait Implementations
sourceimpl Clone for ClientInfos
impl Clone for ClientInfos
sourcefn clone(&self) -> ClientInfos
fn clone(&self) -> ClientInfos
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ClientInfos
impl Debug for ClientInfos
sourceimpl<'de> Deserialize<'de> for ClientInfos
impl<'de> Deserialize<'de> for ClientInfos
sourcefn 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
sourceimpl PartialEq<ClientInfos> for ClientInfos
impl PartialEq<ClientInfos> for ClientInfos
sourcefn eq(&self, other: &ClientInfos) -> bool
fn eq(&self, other: &ClientInfos) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ClientInfos) -> bool
fn ne(&self, other: &ClientInfos) -> bool
This method tests for !=.
impl Eq for ClientInfos
impl StructuralEq for ClientInfos
impl StructuralPartialEq for ClientInfos
Auto Trait Implementations
impl RefUnwindSafe for ClientInfos
impl Send for ClientInfos
impl Sync for ClientInfos
impl Unpin for ClientInfos
impl UnwindSafe for ClientInfos
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more