pub struct StateField {
pub name: Ident,
pub type_ann: TypeAnnotation,
pub default: Expr,
pub span: Span,
}Expand description
A single state field: count: number = 0
Fields§
§name: Ident§type_ann: TypeAnnotation§default: Expr§span: SpanTrait Implementations§
Source§impl Clone for StateField
impl Clone for StateField
Source§fn clone(&self) -> StateField
fn clone(&self) -> StateField
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 StateField
impl Debug for StateField
Source§impl<'de> Deserialize<'de> for StateField
impl<'de> Deserialize<'de> for StateField
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 PartialEq for StateField
impl PartialEq for StateField
Source§impl Serialize for StateField
impl Serialize for StateField
impl StructuralPartialEq for StateField
Auto Trait Implementations§
impl Freeze for StateField
impl RefUnwindSafe for StateField
impl Send for StateField
impl Sync for StateField
impl Unpin for StateField
impl UnwindSafe for StateField
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