pub struct SubjectSchema { /* private fields */ }Expand description
SubjectSchema is a schema along with the subject, version and ID of the schema in the schema registry.
Implementations§
Source§impl SubjectSchema
impl SubjectSchema
Sourcepub fn new(
schema: Schema,
subject: impl Into<String>,
version: SchemaVersion,
id: SchemaId,
) -> SubjectSchema
pub fn new( schema: Schema, subject: impl Into<String>, version: SchemaVersion, id: SchemaId, ) -> SubjectSchema
Create a new schema that has been registered in the Schema Registry under the given subject/version and ID.
Sourcepub fn version(&self) -> SchemaVersion
pub fn version(&self) -> SchemaVersion
The version that the schema was registered under.
Trait Implementations§
Source§impl Clone for SubjectSchema
impl Clone for SubjectSchema
Source§fn clone(&self) -> SubjectSchema
fn clone(&self) -> SubjectSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 SubjectSchema
impl Debug for SubjectSchema
Source§impl PartialEq for SubjectSchema
impl PartialEq for SubjectSchema
impl Eq for SubjectSchema
impl StructuralPartialEq for SubjectSchema
Auto Trait Implementations§
impl Freeze for SubjectSchema
impl RefUnwindSafe for SubjectSchema
impl Send for SubjectSchema
impl Sync for SubjectSchema
impl Unpin for SubjectSchema
impl UnwindSafe for SubjectSchema
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,
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.