pub struct Articles {
pub schema: Schema,
pub contract_sigs: ContentSigs,
pub issue: Issue,
}Expand description
Articles contain the contract and all related codex and API information for interacting with it.
Fields§
§schema: Schema§contract_sigs: ContentSigs§issue: IssueImplementations§
Source§impl Articles
impl Articles
pub fn contract_id(&self) -> ContractId
pub fn api(&self, name: &TypeName) -> &Api
pub fn merge(&mut self, other: Self) -> Result<bool, MergeError>
pub fn decode( reader: &mut StrictReader<impl ReadRaw>, ) -> Result<Self, DecodeError>
pub fn encode(&self, writer: StrictWriter<impl WriteRaw>) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Articles
impl<'de> Deserialize<'de> for Articles
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 Articles
impl StrictDecode for Articles
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for Articles
impl StrictDumb for Articles
fn strict_dumb() -> Self
Source§impl StrictEncode for Articles
impl StrictEncode for Articles
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for Articles
impl StrictStruct for Articles
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for Articles
impl StrictType for Articles
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
impl Eq for Articles
impl StrictProduct for Articles
impl StructuralPartialEq for Articles
Auto Trait Implementations§
impl Freeze for Articles
impl RefUnwindSafe for Articles
impl Send for Articles
impl Sync for Articles
impl Unpin for Articles
impl UnwindSafe for Articles
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.