Struct casper_contract_schema::ContractSchema
source · pub struct ContractSchema {
pub casper_contract_schema_version: u8,
pub toolchain: String,
pub authors: Vec<String>,
pub repository: Option<String>,
pub homepage: Option<String>,
pub contract_name: String,
pub contract_version: String,
pub types: Vec<CustomType>,
pub errors: Vec<UserError>,
pub entry_points: Vec<Entrypoint>,
pub events: Vec<Event>,
pub call: Option<CallMethod>,
}
Expand description
Contract definition.
Fields§
§casper_contract_schema_version: u8
§toolchain: String
§repository: Option<String>
§homepage: Option<String>
§contract_name: String
§contract_version: String
§types: Vec<CustomType>
§errors: Vec<UserError>
§entry_points: Vec<Entrypoint>
§events: Vec<Event>
§call: Option<CallMethod>
Implementations§
Trait Implementations§
source§impl Debug for ContractSchema
impl Debug for ContractSchema
source§impl<'de> Deserialize<'de> for ContractSchema
impl<'de> Deserialize<'de> for ContractSchema
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 JsonSchema for ContractSchema
impl JsonSchema for ContractSchema
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for ContractSchema
impl RefUnwindSafe for ContractSchema
impl Send for ContractSchema
impl Sync for ContractSchema
impl Unpin for ContractSchema
impl UnwindSafe for ContractSchema
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