pub struct Field {
pub name: NameContainer,
pub teal_type: Cow<'static, [NamePart]>,
pub ty: Type,
}
Expand description
Represents a field, containing both the name and its type
Fields§
§name: NameContainer
the name of the field
teal_type: Cow<'static, [NamePart]>
the type of the field, according to the old format
ty: Type
the type of the field
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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 From<(NameContainer, Type)> for Field
impl From<(NameContainer, Type)> for Field
source§fn from((name, ty): (NameContainer, Type)) -> Self
fn from((name, ty): (NameContainer, Type)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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