pub struct NEP6Contract {
pub script: Option<String>,
pub is_deployed: bool,
pub nep6_parameters: Vec<NEP6Parameter>,
}
Expand description
Represents a NEP-6 contract.
Fields§
§script: Option<String>
The script associated with the contract.
is_deployed: bool
Indicates whether the contract is deployed.
nep6_parameters: Vec<NEP6Parameter>
The NEP-6 parameters associated with the contract.
Implementations§
Source§impl NEP6Contract
impl NEP6Contract
Sourcepub fn is_deployed(&self) -> &bool
pub fn is_deployed(&self) -> &bool
Indicates whether the contract is deployed.
Sourcepub fn nep6_parameters(&self) -> &Vec<NEP6Parameter>
pub fn nep6_parameters(&self) -> &Vec<NEP6Parameter>
The NEP-6 parameters associated with the contract.
Trait Implementations§
Source§impl Clone for NEP6Contract
impl Clone for NEP6Contract
Source§fn clone(&self) -> NEP6Contract
fn clone(&self) -> NEP6Contract
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NEP6Contract
impl Debug for NEP6Contract
Source§impl<'de> Deserialize<'de> for NEP6Contract
impl<'de> Deserialize<'de> for NEP6Contract
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 NEP6Contract
impl RefUnwindSafe for NEP6Contract
impl Send for NEP6Contract
impl Sync for NEP6Contract
impl Unpin for NEP6Contract
impl UnwindSafe for NEP6Contract
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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