pub struct GlobalPostageBatch {
pub batch_id: BatchId,
pub value: Option<BigInt>,
pub start: u64,
pub owner: String,
pub depth: u8,
pub bucket_depth: u8,
pub immutable: bool,
pub batch_ttl: i64,
}Expand description
Postage batch as returned by GET /batches (chain-wide view; drops
owner-only fields).
Fields§
§batch_id: BatchIdBatch identifier.
value: Option<BigInt>Per-chunk value (PLUR). The chain-wide endpoint uses "value"
here, unlike the owner endpoint’s "amount".
start: u64Block number when the batch was bought.
owner: StringOwner address (hex).
depth: u8Batch depth.
bucket_depth: u8Bucket depth.
immutable: boolWhether the batch is immutable. (Note: the chain-wide endpoint
uses "immutable" whereas the owner endpoint uses
"immutableFlag".)
batch_ttl: i64Estimated TTL in seconds.
Trait Implementations§
Source§impl Clone for GlobalPostageBatch
impl Clone for GlobalPostageBatch
Source§fn clone(&self) -> GlobalPostageBatch
fn clone(&self) -> GlobalPostageBatch
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 GlobalPostageBatch
impl Debug for GlobalPostageBatch
Source§impl<'de> Deserialize<'de> for GlobalPostageBatch
impl<'de> Deserialize<'de> for GlobalPostageBatch
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 GlobalPostageBatch
impl PartialEq for GlobalPostageBatch
impl Eq for GlobalPostageBatch
impl StructuralPartialEq for GlobalPostageBatch
Auto Trait Implementations§
impl Freeze for GlobalPostageBatch
impl RefUnwindSafe for GlobalPostageBatch
impl Send for GlobalPostageBatch
impl Sync for GlobalPostageBatch
impl Unpin for GlobalPostageBatch
impl UnsafeUnpin for GlobalPostageBatch
impl UnwindSafe for GlobalPostageBatch
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