pub struct ArticlesId {
pub contract_id: ContractId,
pub version: u16,
pub checksum: ApisChecksum,
}
Expand description
Articles id is a versioned variant for the contract id, which includes information about a specific API version.
Contracts may have multiple API implementations, which may be versioned. Articles include a specific version of the contract APIs. This structure provides the necessary information for the user about a specific API version known and used by a system, so a user may avoid confusion when an API change due to upgrade happens.
§See also
Fields§
§contract_id: ContractId
An identifier of the contract.
version: u16
Version number of the API.
checksum: ApisChecksum
A checksum for the APIs from the Semantics structure.
Trait Implementations§
Source§impl Clone for ArticlesId
impl Clone for ArticlesId
Source§fn clone(&self) -> ArticlesId
fn clone(&self) -> ArticlesId
Returns a duplicate 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 CommitEncode for ArticlesId
impl CommitEncode for ArticlesId
Source§type CommitmentId = StrictHash
type CommitmentId = StrictHash
Type of the resulting commitment.
Source§fn commit_encode(&self, engine: &mut CommitEngine)
fn commit_encode(&self, engine: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instanceSource§impl Debug for ArticlesId
impl Debug for ArticlesId
Source§impl<'de> Deserialize<'de> for ArticlesId
impl<'de> Deserialize<'de> for ArticlesId
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 Display for ArticlesId
impl Display for ArticlesId
Source§impl FromStr for ArticlesId
impl FromStr for ArticlesId
Source§impl Hash for ArticlesId
impl Hash for ArticlesId
Source§impl Ord for ArticlesId
impl Ord for ArticlesId
Source§fn cmp(&self, other: &ArticlesId) -> Ordering
fn cmp(&self, other: &ArticlesId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArticlesId
impl PartialEq for ArticlesId
Source§impl PartialOrd for ArticlesId
impl PartialOrd for ArticlesId
Source§impl Serialize for ArticlesId
impl Serialize for ArticlesId
Source§impl StrictDecode for ArticlesId
impl StrictDecode for ArticlesId
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for ArticlesId
impl StrictDumb for ArticlesId
fn strict_dumb() -> Self
Source§impl StrictEncode for ArticlesId
impl StrictEncode for ArticlesId
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for ArticlesId
impl StrictStruct for ArticlesId
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ArticlesId
impl StrictType for ArticlesId
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
impl Copy for ArticlesId
impl Eq for ArticlesId
impl StrictProduct for ArticlesId
impl StructuralPartialEq for ArticlesId
Auto Trait Implementations§
impl Freeze for ArticlesId
impl RefUnwindSafe for ArticlesId
impl Send for ArticlesId
impl Sync for ArticlesId
impl Unpin for ArticlesId
impl UnwindSafe for ArticlesId
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<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
Source§fn commitment_layout() -> CommitLayout
fn commitment_layout() -> CommitLayout
Generate a descriptive commitment layout, which includes a description
of each encoded field and the used hashing strategies.
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.