pub struct Schema {
pub codex: Codex,
pub default_api: Api,
pub default_api_sigs: ContentSigs,
pub custom_apis: SmallOrdMap<Api, ContentSigs>,
pub libs: SmallOrdSet<Lib>,
pub types: TypeSystem,
pub codex_sigs: ContentSigs,
pub annotations: TinyOrdMap<Annotations, ContentSigs>,
pub reserved: ReservedBytes<8>,
}Expand description
Schema contains information required for creation of a contract.
Fields§
§codex: Codex§default_api: Api§default_api_sigs: ContentSigs§custom_apis: SmallOrdMap<Api, ContentSigs>§libs: SmallOrdSet<Lib>§types: TypeSystem§codex_sigs: ContentSigs§annotations: TinyOrdMap<Annotations, ContentSigs>§reserved: ReservedBytes<8>Implementations§
Source§impl Schema
impl Schema
pub fn start_issue( self, method: impl Into<MethodName>, consensus: Consensus, testnet: bool, ) -> IssueBuilder
pub fn start_issue_mainnet( self, method: impl Into<MethodName>, consensus: Consensus, ) -> IssueBuilder
pub fn start_issue_testnet( self, method: impl Into<MethodName>, consensus: Consensus, ) -> IssueBuilder
pub fn issue(self, params: IssueParams) -> Articles
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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 StrictDecode for Schema
impl StrictDecode for Schema
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for Schema
impl StrictDeserialize for Schema
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictDumb for Schema
impl StrictDumb for Schema
fn strict_dumb() -> Self
Source§impl StrictEncode for Schema
impl StrictEncode for Schema
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSerialize for Schema
impl StrictSerialize for Schema
fn strict_serialized_len<const MAX: usize>(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictStruct for Schema
impl StrictStruct for Schema
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for Schema
impl StrictType for Schema
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
impl Eq for Schema
impl StrictProduct for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.