Struct ink_metadata::InkProject
source · [−]pub struct InkProject { /* private fields */ }
Expand description
An entire ink! project for metadata file generation purposes.
Implementations
sourceimpl InkProject
impl InkProject
sourceimpl InkProject
impl InkProject
sourcepub fn registry(&self) -> &PortableRegistry
pub fn registry(&self) -> &PortableRegistry
Returns a read-only registry of types in the contract.
sourcepub fn layout(&self) -> &Layout<PortableForm>
pub fn layout(&self) -> &Layout<PortableForm>
Returns the storage layout of the contract.
sourcepub fn spec(&self) -> &ContractSpec<PortableForm>
pub fn spec(&self) -> &ContractSpec<PortableForm>
Returns the specification of the contract.
Trait Implementations
sourceimpl Debug for InkProject
impl Debug for InkProject
sourceimpl<'de> Deserialize<'de> for InkProject
impl<'de> Deserialize<'de> for InkProject
sourcefn 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
sourceimpl From<InkProject> for MetadataVersioned
impl From<InkProject> for MetadataVersioned
sourcefn from(ink_project: InkProject) -> Self
fn from(ink_project: InkProject) -> Self
Converts to this type from the input type.
sourceimpl Serialize for InkProject
impl Serialize for InkProject
Auto Trait Implementations
impl RefUnwindSafe for InkProject
impl Send for InkProject
impl Sync for InkProject
impl Unpin for InkProject
impl UnwindSafe for InkProject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more