#[non_exhaustive]pub struct SchemaInfo {
pub version: u32,
pub fingerprint: String,
}Expand description
The schema pair in InitializeResult. version is the wire
envelope schema version — distinct from the session-view
schemaVersion, the raw-log schema_version, and the 0.x/1.0 stability
posture, which is not on the wire at all.
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.version: u32Envelope schema version; 1 in v1, expected to stay 1 for a long
time.
fingerprint: Stringsha256:<64 lower hex> content hash of this server binary’s
stable-surface bundle. A mismatch is a warning condition, not an error.
Trait Implementations§
Source§impl Clone for SchemaInfo
impl Clone for SchemaInfo
Source§impl Debug for SchemaInfo
impl Debug for SchemaInfo
Source§impl<'de> Deserialize<'de> for SchemaInfo
impl<'de> Deserialize<'de> for SchemaInfo
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 SchemaInfo
Source§impl PartialEq for SchemaInfo
impl PartialEq for SchemaInfo
Source§impl Serialize for SchemaInfo
impl Serialize for SchemaInfo
impl StructuralPartialEq for SchemaInfo
Auto Trait Implementations§
impl Freeze for SchemaInfo
impl RefUnwindSafe for SchemaInfo
impl Send for SchemaInfo
impl Sync for SchemaInfo
impl Unpin for SchemaInfo
impl UnsafeUnpin for SchemaInfo
impl UnwindSafe for SchemaInfo
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