pub struct VyperContract {
pub name: String,
pub structs: Vec<VyperStruct>,
pub flags: Vec<VyperFlagDef>,
pub interfaces: Vec<VyperInterface>,
pub constants: Vec<VyperConstant>,
pub storage: Vec<VyperStorageVar>,
pub events: Vec<VyperEvent>,
pub constructor: Option<VyperFunction>,
pub default_fn: Option<VyperFunction>,
pub functions: Vec<VyperFunction>,
pub doc: Option<String>,
}Expand description
A complete Vyper contract (module).
Fields§
§name: String§structs: Vec<VyperStruct>§flags: Vec<VyperFlagDef>§interfaces: Vec<VyperInterface>§constants: Vec<VyperConstant>§storage: Vec<VyperStorageVar>§events: Vec<VyperEvent>§constructor: Option<VyperFunction>__init__ function (constructor).
default_fn: Option<VyperFunction>__default__ function (fallback).
functions: Vec<VyperFunction>§doc: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for VyperContract
impl Clone for VyperContract
Source§fn clone(&self) -> VyperContract
fn clone(&self) -> VyperContract
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 moreAuto Trait Implementations§
impl Freeze for VyperContract
impl RefUnwindSafe for VyperContract
impl Send for VyperContract
impl Sync for VyperContract
impl Unpin for VyperContract
impl UnsafeUnpin for VyperContract
impl UnwindSafe for VyperContract
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