pub struct NatspecDoc {
pub title: Option<String>,
pub author: Option<String>,
pub notice: Option<String>,
pub dev: Option<String>,
pub params: Vec<(String, String)>,
pub returns: Vec<String>,
pub custom: Vec<(String, String)>,
}Expand description
Natspec documentation extracted from Solidity source comments
Fields§
§title: Option<String>@title - Contract title
@author - Contract/function author
notice: Option<String>@notice - Human-readable description for end users
dev: Option<String>@dev - Technical details for developers
params: Vec<(String, String)>@param descriptions - key is parameter name, value is description
returns: Vec<String>@return descriptions
custom: Vec<(String, String)>@custom tags
Trait Implementations§
Source§impl Clone for NatspecDoc
impl Clone for NatspecDoc
Source§fn clone(&self) -> NatspecDoc
fn clone(&self) -> NatspecDoc
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 NatspecDoc
impl Debug for NatspecDoc
Source§impl Default for NatspecDoc
impl Default for NatspecDoc
Source§fn default() -> NatspecDoc
fn default() -> NatspecDoc
Returns the “default value” for a type. Read more
Source§impl From<NatspecDocIR> for NatspecDoc
impl From<NatspecDocIR> for NatspecDoc
Source§fn from(ir: NatspecDocIR) -> Self
fn from(ir: NatspecDocIR) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NatspecDoc
impl RefUnwindSafe for NatspecDoc
impl Send for NatspecDoc
impl Sync for NatspecDoc
impl Unpin for NatspecDoc
impl UnwindSafe for NatspecDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more