pub struct Field { /* private fields */ }Expand description
Kafka message field schema
Implementations§
Source§impl Field
impl Field
pub fn ident(&self) -> Ident
pub fn name(&self) -> &str
pub fn kind(&self) -> &Kind
pub fn fields(&self) -> Option<&[Field]>
pub fn versions(&self) -> VersionRange
pub fn nullable(&self) -> Option<VersionRange>
pub fn tagged(&self) -> Option<VersionRange>
pub fn tag(&self) -> Option<u32>
pub fn about(&self) -> Option<&str>
pub fn has_records(&self) -> bool
pub fn has_float(&self) -> bool
Trait Implementations§
Source§impl Ord for Field
impl Ord for Field
Source§impl PartialOrd for Field
impl PartialOrd for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)