pub struct ProtocolRange {
pub major: u64,
pub min_minor: u64,
pub max_minor: u64,
}Expand description
The protocol version window the provider supports (spine §4.1
ProviderManifest.protocol).
Fields§
§major: u64Supported major version.
min_minor: u64Lowest supported minor version.
max_minor: u64Highest supported minor version.
Trait Implementations§
Source§impl Clone for ProtocolRange
impl Clone for ProtocolRange
Source§fn clone(&self) -> ProtocolRange
fn clone(&self) -> ProtocolRange
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 moreimpl Copy for ProtocolRange
Source§impl Debug for ProtocolRange
impl Debug for ProtocolRange
Source§impl<'de> Deserialize<'de> for ProtocolRange
impl<'de> Deserialize<'de> for ProtocolRange
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 ProtocolRange
Source§impl JsonSchema for ProtocolRange
impl JsonSchema for ProtocolRange
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProtocolRange
impl PartialEq for ProtocolRange
Source§impl Serialize for ProtocolRange
impl Serialize for ProtocolRange
impl StructuralPartialEq for ProtocolRange
Auto Trait Implementations§
impl Freeze for ProtocolRange
impl RefUnwindSafe for ProtocolRange
impl Send for ProtocolRange
impl Sync for ProtocolRange
impl Unpin for ProtocolRange
impl UnsafeUnpin for ProtocolRange
impl UnwindSafe for ProtocolRange
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