pub struct IndexSchemaVersion { /* private fields */ }Expand description
The index_schema_version top-level field. Mirrors ManifestSchemaVersion:
format <major>.<minor>, unsupported majors rejected.
Implementations§
Source§impl IndexSchemaVersion
impl IndexSchemaVersion
pub const CURRENT_MAJOR: u32 = 2
pub const CURRENT_MINOR: u32 = 0
pub const CURRENT: IndexSchemaVersion
pub fn new(major: u32, minor: u32) -> IndexSchemaVersion
pub fn major(&self) -> u32
pub fn minor(&self) -> u32
Trait Implementations§
Source§impl Clone for IndexSchemaVersion
impl Clone for IndexSchemaVersion
Source§fn clone(&self) -> IndexSchemaVersion
fn clone(&self) -> IndexSchemaVersion
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 IndexSchemaVersion
Source§impl Debug for IndexSchemaVersion
impl Debug for IndexSchemaVersion
Source§impl<'de> Deserialize<'de> for IndexSchemaVersion
impl<'de> Deserialize<'de> for IndexSchemaVersion
Source§fn deserialize<D>(
deserializer: D,
) -> Result<IndexSchemaVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<IndexSchemaVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IndexSchemaVersion
impl Display for IndexSchemaVersion
impl Eq for IndexSchemaVersion
Source§impl FromStr for IndexSchemaVersion
impl FromStr for IndexSchemaVersion
Source§type Err = SchemaError
type Err = SchemaError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<IndexSchemaVersion, <IndexSchemaVersion as FromStr>::Err>
fn from_str( s: &str, ) -> Result<IndexSchemaVersion, <IndexSchemaVersion as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for IndexSchemaVersion
impl Hash for IndexSchemaVersion
Source§impl PartialEq for IndexSchemaVersion
impl PartialEq for IndexSchemaVersion
Source§fn eq(&self, other: &IndexSchemaVersion) -> bool
fn eq(&self, other: &IndexSchemaVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexSchemaVersion
impl Serialize for IndexSchemaVersion
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexSchemaVersion
Auto Trait Implementations§
impl Freeze for IndexSchemaVersion
impl RefUnwindSafe for IndexSchemaVersion
impl Send for IndexSchemaVersion
impl Sync for IndexSchemaVersion
impl Unpin for IndexSchemaVersion
impl UnsafeUnpin for IndexSchemaVersion
impl UnwindSafe for IndexSchemaVersion
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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