pub struct NatspecDocIR {
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 source comments.
Fields§
§title: Option<String>@title - Contract title
@author - Author information
notice: Option<String>@notice - User-facing description
dev: Option<String>@dev - Developer-facing notes
params: Vec<(String, String)>@param name description
returns: Vec<String>@return descriptions
custom: Vec<(String, String)>@custom:tag value pairs
Trait Implementations§
Source§impl Clone for NatspecDocIR
impl Clone for NatspecDocIR
Source§fn clone(&self) -> NatspecDocIR
fn clone(&self) -> NatspecDocIR
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 NatspecDocIR
impl Debug for NatspecDocIR
Source§impl Default for NatspecDocIR
impl Default for NatspecDocIR
Source§fn default() -> NatspecDocIR
fn default() -> NatspecDocIR
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 NatspecDocIR
impl RefUnwindSafe for NatspecDocIR
impl Send for NatspecDocIR
impl Sync for NatspecDocIR
impl Unpin for NatspecDocIR
impl UnwindSafe for NatspecDocIR
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