pub struct SchemaVersionRange {
pub min_version: String,
pub max_version: String,
}Expand description
Schema version range a plugin supports.
A plugin may support multiple schema versions (e.g., it can validate both v1.0.0 and v1.1.0 textile data). The host uses this to dispatch data to the correct plugin version.
Fields§
§min_version: StringMinimum supported schema version (inclusive), e.g. "1.0.0".
max_version: StringMaximum supported schema version (inclusive), e.g. "1.1.0".
Trait Implementations§
Source§impl Clone for SchemaVersionRange
impl Clone for SchemaVersionRange
Source§fn clone(&self) -> SchemaVersionRange
fn clone(&self) -> SchemaVersionRange
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 SchemaVersionRange
impl Debug for SchemaVersionRange
Source§impl<'de> Deserialize<'de> for SchemaVersionRange
impl<'de> Deserialize<'de> for SchemaVersionRange
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 SchemaVersionRange
Source§impl PartialEq for SchemaVersionRange
impl PartialEq for SchemaVersionRange
Source§fn eq(&self, other: &SchemaVersionRange) -> bool
fn eq(&self, other: &SchemaVersionRange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaVersionRange
impl Serialize for SchemaVersionRange
impl StructuralPartialEq for SchemaVersionRange
Auto Trait Implementations§
impl Freeze for SchemaVersionRange
impl RefUnwindSafe for SchemaVersionRange
impl Send for SchemaVersionRange
impl Sync for SchemaVersionRange
impl Unpin for SchemaVersionRange
impl UnsafeUnpin for SchemaVersionRange
impl UnwindSafe for SchemaVersionRange
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