#[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: String
Short name for the connected client.
type: ClientType
Advertised type of remote client.
version: ClientVersion
Describes the client version.
Trait Implementations§
Source§impl Clone for ClientInfos
impl Clone for ClientInfos
Source§fn clone(&self) -> ClientInfos
fn clone(&self) -> ClientInfos
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientInfos
impl Debug for ClientInfos
Source§impl<'de> Deserialize<'de> for ClientInfos
impl<'de> Deserialize<'de> for ClientInfos
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
Source§impl PartialEq for ClientInfos
impl PartialEq for ClientInfos
impl Eq for ClientInfos
impl StructuralPartialEq for ClientInfos
Auto Trait Implementations§
impl Freeze for ClientInfos
impl RefUnwindSafe for ClientInfos
impl Send for ClientInfos
impl Sync for ClientInfos
impl Unpin for ClientInfos
impl UnwindSafe for ClientInfos
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