pub struct ClientClaim {
pub client_name: String,
pub client_version: String,
pub grammar_digest: String,
pub required_capabilities: Vec<String>,
pub required_formats: Vec<FormatVersion>,
}Expand description
What a client says it needs.
Note what this does NOT carry: the client’s full vocabulary. It carries what
the client REQUIRES. That asymmetry is deliberate — a client should not have
to enumerate everything it knows in order to connect — and it bounds what the
engine can honestly report as a gap. See Compatibility::CompatibleWithGaps.
Fields§
§client_name: String§client_version: String§grammar_digest: StringThe digest of the grammar the CLIENT implements. Supplied for comparison only; it is never the thing the engine hashes to answer the question.
required_capabilities: Vec<String>§required_formats: Vec<FormatVersion>Trait Implementations§
Source§impl Clone for ClientClaim
impl Clone for ClientClaim
Source§fn clone(&self) -> ClientClaim
fn clone(&self) -> ClientClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientClaim
impl Debug for ClientClaim
Source§impl<'de> Deserialize<'de> for ClientClaim
impl<'de> Deserialize<'de> for ClientClaim
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 ClientClaim
Source§impl PartialEq for ClientClaim
impl PartialEq for ClientClaim
Source§impl Serialize for ClientClaim
impl Serialize for ClientClaim
impl StructuralPartialEq for ClientClaim
Auto Trait Implementations§
impl Freeze for ClientClaim
impl RefUnwindSafe for ClientClaim
impl Send for ClientClaim
impl Sync for ClientClaim
impl Unpin for ClientClaim
impl UnsafeUnpin for ClientClaim
impl UnwindSafe for ClientClaim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more