pub struct Attributes<'a> {
pub logical_type: Option<&'a str>,
pub additional: HashMap<&'a str, Value>,
}
Expand description
Additional attributes within a Schema
https://avro.apache.org/docs/1.11.1/specification/#schema-declaration
Fields§
§logical_type: Option<&'a str>
A logical type name
https://avro.apache.org/docs/1.11.1/specification/#logical-types
additional: HashMap<&'a str, Value>
Additional JSON attributes
Implementations§
Source§impl Attributes<'_>
impl Attributes<'_>
Sourcepub(crate) fn field_metadata(&self) -> HashMap<String, String>
pub(crate) fn field_metadata(&self) -> HashMap<String, String>
Returns the field metadata for this Attributes
Trait Implementations§
Source§impl<'a> Clone for Attributes<'a>
impl<'a> Clone for Attributes<'a>
Source§fn clone(&self) -> Attributes<'a>
fn clone(&self) -> Attributes<'a>
Returns a copy 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<'a> Debug for Attributes<'a>
impl<'a> Debug for Attributes<'a>
Source§impl<'a> Default for Attributes<'a>
impl<'a> Default for Attributes<'a>
Source§fn default() -> Attributes<'a>
fn default() -> Attributes<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for Attributes<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Attributes<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> PartialEq for Attributes<'a>
impl<'a> PartialEq for Attributes<'a>
Source§impl<'a> Serialize for Attributes<'a>
impl<'a> Serialize for Attributes<'a>
impl<'a> Eq for Attributes<'a>
impl<'a> StructuralPartialEq for Attributes<'a>
Auto Trait Implementations§
impl<'a> Freeze for Attributes<'a>
impl<'a> RefUnwindSafe for Attributes<'a>
impl<'a> Send for Attributes<'a>
impl<'a> Sync for Attributes<'a>
impl<'a> Unpin for Attributes<'a>
impl<'a> UnwindSafe for Attributes<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more