pub struct GetterDeclaration {
pub name: String,
pub type_: Option<Type>,
pub body: Option<Statement>,
pub modifiers: Vec<Modifier>,
}
Expand description
Getter declaration
Fields§
§name: String
§type_: Option<Type>
§body: Option<Statement>
§modifiers: Vec<Modifier>
Trait Implementations§
Source§impl Clone for GetterDeclaration
impl Clone for GetterDeclaration
Source§fn clone(&self) -> GetterDeclaration
fn clone(&self) -> GetterDeclaration
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 GetterDeclaration
impl Debug for GetterDeclaration
Source§impl<'de> Deserialize<'de> for GetterDeclaration
impl<'de> Deserialize<'de> for GetterDeclaration
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 GetterDeclaration
impl RefUnwindSafe for GetterDeclaration
impl Send for GetterDeclaration
impl Sync for GetterDeclaration
impl Unpin for GetterDeclaration
impl UnwindSafe for GetterDeclaration
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