pub struct PostageBatch {}Expand description
Postage batch as returned by GET /stamps / GET /stamps/{id}
(owner-only view; includes utilization, label, blockNumber).
Wire-format gotcha caught against a live Bee: the per-chunk
price is keyed "amount" not "value", and the immutable flag
is keyed "immutableFlag" not "immutable". bee-go landed both
fixes in v1.0; we get them right by construction here.
Fields§
§batch_id: BatchIdBatch identifier.
amount: Option<BigInt>Per-chunk amount (PLUR).
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.
batch_ttl: i64Estimated TTL in seconds.
utilization: u32Bucket utilization stats.
usable: boolWhether the batch is currently usable.
exists: boolWhether Bee currently knows about the batch.
label: StringOptional label.
block_number: u64Block number reported by Bee.
Trait Implementations§
Source§impl Clone for PostageBatch
impl Clone for PostageBatch
Source§fn clone(&self) -> PostageBatch
fn clone(&self) -> PostageBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostageBatch
impl Debug for PostageBatch
Source§impl<'de> Deserialize<'de> for PostageBatch
impl<'de> Deserialize<'de> for PostageBatch
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 PostageBatch
impl PartialEq for PostageBatch
Source§fn eq(&self, other: &PostageBatch) -> bool
fn eq(&self, other: &PostageBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PostageBatch
impl StructuralPartialEq for PostageBatch
Auto Trait Implementations§
impl Freeze for PostageBatch
impl RefUnwindSafe for PostageBatch
impl Send for PostageBatch
impl Sync for PostageBatch
impl Unpin for PostageBatch
impl UnsafeUnpin for PostageBatch
impl UnwindSafe for PostageBatch
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