pub struct FieldSpec {
pub name: String,
pub field_type: String,
pub versions: VersionRange,
pub nullable_versions: Option<VersionRange>,
pub tagged_versions: Option<VersionRange>,
pub tag: Option<u32>,
pub fields: Vec<Self>,
pub default: Option<Value>,
pub entity_type: String,
pub map_key: bool,
pub about: String,
pub flexible_versions: Option<FlexibleVersions>,
}Fields§
§name: String§field_type: String§versions: VersionRange§nullable_versions: Option<VersionRange>§tagged_versions: Option<VersionRange>§tag: Option<u32>§fields: Vec<Self>§default: Option<Value>§entity_type: String§map_key: bool§about: String§flexible_versions: Option<FlexibleVersions>Per-field flexible-version override. Some(FlexibleVersions::None)
means this field always uses legacy (non-compact) encoding, even in a
flexible-version message. None means the field inherits from the
message-level flexible_versions, which is the common case.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldSpec
impl<'de> Deserialize<'de> for FieldSpec
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
Auto Trait Implementations§
impl Freeze for FieldSpec
impl RefUnwindSafe for FieldSpec
impl Send for FieldSpec
impl Sync for FieldSpec
impl Unpin for FieldSpec
impl UnsafeUnpin for FieldSpec
impl UnwindSafe for FieldSpec
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