pub(crate) struct Attributes<'a> {
pub(crate) logical_type: Option<&'a str>,
pub(crate) additional: HashMap<&'a str, Value>,
}展开描述
字段§
§logical_type: Option<&'a str>§additional: HashMap<&'a str, Value>额外的 JSON 属性
实现§
源§impl Attributes<'_>
impl Attributes<'_>
源代码pub(crate) fn field_metadata(&self) -> HashMap<String, String>
pub(crate) fn field_metadata(&self) -> HashMap<String, String>
返回此 Attributes 的字段元数据
Trait 实现§
源§impl<'a> Clone for Attributes<'a>
impl<'a> Clone for Attributes<'a>
源§fn clone(&self) -> Attributes<'a>
fn clone(&self) -> Attributes<'a>
返回值的副本。 阅读更多
1.0.0 · 源§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
执行从
source 的复制赋值。 阅读更多源§impl<'a> Debug for Attributes<'a>
impl<'a> Debug for Attributes<'a>
源§impl<'a> Default for Attributes<'a>
impl<'a> Default for Attributes<'a>
源§fn default() -> Attributes<'a>
fn default() -> Attributes<'a>
返回某个类型的“默认值”。阅读更多
源§impl<'de: 'a, 'a> Deserialize<'de> for Attributes<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Attributes<'a>
源§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>,
从给定的 Serde 反序列化器反序列化此值。 阅读更多
源§impl<'a> PartialEq for Attributes<'a>
impl<'a> PartialEq for Attributes<'a>
源§impl<'a> Serialize for Attributes<'a>
impl<'a> Serialize for Attributes<'a>
impl<'a> Eq for Attributes<'a>
impl<'a> StructuralPartialEq for Attributes<'a>
自动 Trait 实现§
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>
通用实现§
源§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
将 self 与
key 进行比较,如果它们相等则返回 true。