pub struct ContractUploadRequest {
pub name: String,
pub description: String,
pub long_description: Option<String>,
pub bytecode: String,
pub sourcecode: Option<String>,
pub type: Option<Type>,
pub docs: Option<ContractDoc>,
pub abi: Vec<Vec<AbiFunction>>,
pub attributes: Option<ContractAttributes>,
}
Fields§
§name: String
The name of the contract template
description: String
A short description of the contract template
long_description: Option<String>
A full description of the contract template. May contain to break the lines
bytecode: String
The compiled artifact of this smart contract. Used for deployment of this contract template
sourcecode: Option<String>
The source code of the contract. Optional.
type: Option<Type>
The type of the contract template
docs: Option<ContractDoc>
A natspec
compliant documentation json. Can be retrieved from the
output json after compilation
abi: Vec<Vec<AbiFunction>>
§attributes: Option<ContractAttributes>
The attributes related to this contract template. It will be displayed in the tokenization page
Implementations§
Source§impl ContractUploadRequest
impl ContractUploadRequest
pub fn new( name: String, description: String, bytecode: String, abi: Vec<Vec<AbiFunction>>, ) -> ContractUploadRequest
Trait Implementations§
Source§impl Clone for ContractUploadRequest
impl Clone for ContractUploadRequest
Source§fn clone(&self) -> ContractUploadRequest
fn clone(&self) -> ContractUploadRequest
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 ContractUploadRequest
impl Debug for ContractUploadRequest
Source§impl Default for ContractUploadRequest
impl Default for ContractUploadRequest
Source§fn default() -> ContractUploadRequest
fn default() -> ContractUploadRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractUploadRequest
impl<'de> Deserialize<'de> for ContractUploadRequest
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 ContractUploadRequest
impl PartialEq for ContractUploadRequest
Source§impl Serialize for ContractUploadRequest
impl Serialize for ContractUploadRequest
impl StructuralPartialEq for ContractUploadRequest
Auto Trait Implementations§
impl Freeze for ContractUploadRequest
impl RefUnwindSafe for ContractUploadRequest
impl Send for ContractUploadRequest
impl Sync for ContractUploadRequest
impl Unpin for ContractUploadRequest
impl UnwindSafe for ContractUploadRequest
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