pub struct StructExprField {
pub id: i64,
pub name: String,
pub value: Expr,
pub optional: bool,
}Expand description
A field in a struct expression.
Struct fields consist of a name, value expression, and optional flag.
Fields§
§id: i64The unique ID of this field for source tracking.
name: StringThe name of the field.
value: ExprThe expression providing the field value.
optional: boolIf true, this field is omitted if the value is undefined.
Trait Implementations§
Source§impl Debug for StructExprField
impl Debug for StructExprField
Source§impl From<&StructExprField> for StructExprField
impl From<&StructExprField> for StructExprField
Source§fn from(value: &StructExprField) -> Self
fn from(value: &StructExprField) -> Self
Converts to this type from the input type.
Source§impl From<&StructExprField> for UniquePtr<StructExprField>
impl From<&StructExprField> for UniquePtr<StructExprField>
Source§fn from(value: &StructExprField) -> Self
fn from(value: &StructExprField) -> Self
Converts to this type from the input type.
Source§impl From<StructExprField> for UniquePtr<StructExprField>
impl From<StructExprField> for UniquePtr<StructExprField>
Source§fn from(value: StructExprField) -> Self
fn from(value: StructExprField) -> Self
Converts to this type from the input type.
Source§impl From<UniquePtr<StructExprField>> for StructExprField
impl From<UniquePtr<StructExprField>> for StructExprField
Source§fn from(value: UniquePtr<StructExprField>) -> Self
fn from(value: UniquePtr<StructExprField>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StructExprField
impl RefUnwindSafe for StructExprField
impl Send for StructExprField
impl Sync for StructExprField
impl Unpin for StructExprField
impl UnwindSafe for StructExprField
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
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