pub struct IssuerId {
pub codex_id: CodexId,
pub version: u16,
pub checksum: ApisChecksum,
}
Expand description
Issuer id is a versioned variant for the codex id, which includes information about a specific API version.
Codexes may have multiple API implementations, which may be versioned. Issuers include a specific version of the codex 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§
§codex_id: CodexId
An identifier of the codex.
version: u16
Version number of the API.
checksum: ApisChecksum
A checksum for the APIs from the Semantics structure.
Trait Implementations§
Source§impl CommitEncode for IssuerId
impl CommitEncode for IssuerId
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<'de> Deserialize<'de> for IssuerId
impl<'de> Deserialize<'de> for IssuerId
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 From<IssuerId> for IssuerSpec
impl From<IssuerId> for IssuerSpec
Source§impl Ord for IssuerId
impl Ord for IssuerId
Source§impl PartialOrd for IssuerId
impl PartialOrd for IssuerId
Source§impl StrictDecode for IssuerId
impl StrictDecode for IssuerId
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for IssuerId
impl StrictDumb for IssuerId
fn strict_dumb() -> Self
Source§impl StrictEncode for IssuerId
impl StrictEncode for IssuerId
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for IssuerId
impl StrictStruct for IssuerId
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for IssuerId
impl StrictType for IssuerId
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
impl Copy for IssuerId
impl Eq for IssuerId
impl StrictProduct for IssuerId
impl StructuralPartialEq for IssuerId
Auto Trait Implementations§
impl Freeze for IssuerId
impl RefUnwindSafe for IssuerId
impl Send for IssuerId
impl Sync for IssuerId
impl Unpin for IssuerId
impl UnwindSafe for IssuerId
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.