pub struct StatePackageCodePageResponse {
pub ledger_state: Box<LedgerState>,
pub total_count: Option<Option<i64>>,
pub next_cursor: Option<Option<String>>,
pub items: Vec<PackageCodeCollectionItem>,
pub package_address: String,
}Fields§
§ledger_state: Box<LedgerState>§total_count: Option<Option<i64>>Total number of items in underlying collection, fragment of which is available in items collection.
next_cursor: Option<Option<String>>If specified, contains a cursor to query next page of the items collection.
items: Vec<PackageCodeCollectionItem>§package_address: StringBech32m-encoded human readable version of the address.
Implementations§
Source§impl StatePackageCodePageResponse
impl StatePackageCodePageResponse
pub fn new( ledger_state: LedgerState, items: Vec<PackageCodeCollectionItem>, package_address: String, ) -> StatePackageCodePageResponse
Trait Implementations§
Source§impl Clone for StatePackageCodePageResponse
impl Clone for StatePackageCodePageResponse
Source§fn clone(&self) -> StatePackageCodePageResponse
fn clone(&self) -> StatePackageCodePageResponse
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 Debug for StatePackageCodePageResponse
impl Debug for StatePackageCodePageResponse
Source§impl Default for StatePackageCodePageResponse
impl Default for StatePackageCodePageResponse
Source§fn default() -> StatePackageCodePageResponse
fn default() -> StatePackageCodePageResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatePackageCodePageResponse
impl<'de> Deserialize<'de> for StatePackageCodePageResponse
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 PartialEq for StatePackageCodePageResponse
impl PartialEq for StatePackageCodePageResponse
Source§fn eq(&self, other: &StatePackageCodePageResponse) -> bool
fn eq(&self, other: &StatePackageCodePageResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatePackageCodePageResponse
Auto Trait Implementations§
impl Freeze for StatePackageCodePageResponse
impl RefUnwindSafe for StatePackageCodePageResponse
impl Send for StatePackageCodePageResponse
impl Sync for StatePackageCodePageResponse
impl Unpin for StatePackageCodePageResponse
impl UnwindSafe for StatePackageCodePageResponse
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