pub struct JavaCodecDescriptor {
pub codec_id: String,
pub java_type: String,
pub schema_version: u32,
pub kind: JavaCodecKind,
}Expand description
Codec/schema descriptor registered by the Java migration toolkit.
Fields§
§codec_id: StringStable codec id.
java_type: StringFully qualified Java type name.
schema_version: u32Schema version for reviewable migrations.
kind: JavaCodecKindRegistration kind.
Implementations§
Source§impl JavaCodecDescriptor
impl JavaCodecDescriptor
Sourcepub fn new(
codec_id: impl Into<String>,
java_type: impl Into<String>,
schema_version: u32,
kind: JavaCodecKind,
) -> Result<Self, JavaMigrationContractError>
pub fn new( codec_id: impl Into<String>, java_type: impl Into<String>, schema_version: u32, kind: JavaCodecKind, ) -> Result<Self, JavaMigrationContractError>
Create a descriptor.
Trait Implementations§
Source§impl Clone for JavaCodecDescriptor
impl Clone for JavaCodecDescriptor
Source§fn clone(&self) -> JavaCodecDescriptor
fn clone(&self) -> JavaCodecDescriptor
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 JavaCodecDescriptor
impl Debug for JavaCodecDescriptor
impl Eq for JavaCodecDescriptor
Source§impl PartialEq for JavaCodecDescriptor
impl PartialEq for JavaCodecDescriptor
Source§fn eq(&self, other: &JavaCodecDescriptor) -> bool
fn eq(&self, other: &JavaCodecDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavaCodecDescriptor
Auto Trait Implementations§
impl Freeze for JavaCodecDescriptor
impl RefUnwindSafe for JavaCodecDescriptor
impl Send for JavaCodecDescriptor
impl Sync for JavaCodecDescriptor
impl Unpin for JavaCodecDescriptor
impl UnsafeUnpin for JavaCodecDescriptor
impl UnwindSafe for JavaCodecDescriptor
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