pub struct NamedSchemaVersions<S, C>where
S: CustomSchema,
C: ComparableSchema<S>,{ /* private fields */ }
Expand description
A list of named comparable schemas, intended to capture various versions of the same schema over time.
Implementations§
Source§impl<S, C> NamedSchemaVersions<S, C>where
S: CustomSchema,
C: ComparableSchema<S>,
impl<S, C> NamedSchemaVersions<S, C>where
S: CustomSchema,
C: ComparableSchema<S>,
pub fn new() -> NamedSchemaVersions<S, C>
pub fn from<F, K, V>(from: F) -> NamedSchemaVersions<S, C>
pub fn register_version( self, name: impl AsRef<str>, version: impl IntoComparableSchema<C, S>, ) -> NamedSchemaVersions<S, C>
pub fn get_versions(&self) -> &IndexMap<String, C>
Auto Trait Implementations§
impl<S, C> Freeze for NamedSchemaVersions<S, C>
impl<S, C> RefUnwindSafe for NamedSchemaVersions<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for NamedSchemaVersions<S, C>
impl<S, C> Sync for NamedSchemaVersions<S, C>
impl<S, C> Unpin for NamedSchemaVersions<S, C>
impl<S, C> UnwindSafe for NamedSchemaVersions<S, C>where
S: UnwindSafe,
C: UnwindSafe,
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