pub struct ContractDoc {
pub details: Option<String>,
pub events: Option<String>,
pub kind: String,
pub methods: HashMap<String, FunctionDoc>,
pub version: String,
}
Fields§
§details: Option<String>
A description of the contract
events: Option<String>
A description of the contract`s events
kind: String
Is it devdoc or userdoc
methods: HashMap<String, FunctionDoc>
The description of the contract functions
version: String
The version of the contract
Implementations§
Source§impl ContractDoc
impl ContractDoc
pub fn new( kind: String, methods: HashMap<String, FunctionDoc>, version: String, ) -> ContractDoc
Trait Implementations§
Source§impl Clone for ContractDoc
impl Clone for ContractDoc
Source§fn clone(&self) -> ContractDoc
fn clone(&self) -> ContractDoc
Returns a copy 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 ContractDoc
impl Debug for ContractDoc
Source§impl Default for ContractDoc
impl Default for ContractDoc
Source§fn default() -> ContractDoc
fn default() -> ContractDoc
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractDoc
impl<'de> Deserialize<'de> for ContractDoc
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 ContractDoc
impl PartialEq for ContractDoc
Source§impl Serialize for ContractDoc
impl Serialize for ContractDoc
impl StructuralPartialEq for ContractDoc
Auto Trait Implementations§
impl Freeze for ContractDoc
impl RefUnwindSafe for ContractDoc
impl Send for ContractDoc
impl Sync for ContractDoc
impl Unpin for ContractDoc
impl UnwindSafe for ContractDoc
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