pub struct RecordMember {
pub name: String,
pub member_type: String,
pub annotation: Annotation,
pub length: Option<LengthValue>,
pub optional: bool,
pub default: Option<Value>,
pub wire_is_data_only: bool,
pub skip_serialize: bool,
pub no_default: Option<bool>,
pub array_element_optional: Option<bool>,
}Expand description
A record member (used in function arguments, struct members, etc.)
Fields§
§name: String§member_type: String§annotation: Annotation§length: Option<LengthValue>§optional: bool§default: Option<Value>§wire_is_data_only: bool§skip_serialize: bool§no_default: Option<bool>§array_element_optional: Option<bool>Trait Implementations§
Source§impl Clone for RecordMember
impl Clone for RecordMember
Source§fn clone(&self) -> RecordMember
fn clone(&self) -> RecordMember
Returns a duplicate 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 Debug for RecordMember
impl Debug for RecordMember
Source§impl<'de> Deserialize<'de> for RecordMember
impl<'de> Deserialize<'de> for RecordMember
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 RecordMember
impl RefUnwindSafe for RecordMember
impl Send for RecordMember
impl Sync for RecordMember
impl Unpin for RecordMember
impl UnsafeUnpin for RecordMember
impl UnwindSafe for RecordMember
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more