Struct celestia_proto::celestia::blob::v1::MsgPayForBlobs
source · pub struct MsgPayForBlobs {
pub signer: String,
pub namespaces: Vec<Vec<u8>>,
pub blob_sizes: Vec<u32>,
pub share_commitments: Vec<Vec<u8>>,
pub share_versions: Vec<u32>,
}Expand description
MsgPayForBlobs pays for the inclusion of a blob in the block.
Fields§
§signer: String§namespaces: Vec<Vec<u8>>namespaces is a list of namespaces that the blobs are associated with. A namespace is a byte slice of length 29 where the first byte is the namespaceVersion and the subsequent 28 bytes are the namespaceId.
blob_sizes: Vec<u32>share_commitments is a list of share commitments (one per blob).
share_versions are the versions of the share format that the blobs associated with this message should use when included in a block. The share_versions specified must match the share_versions used to generate the share_commitment in this message.
Trait Implementations§
source§impl Clone for MsgPayForBlobs
impl Clone for MsgPayForBlobs
source§fn clone(&self) -> MsgPayForBlobs
fn clone(&self) -> MsgPayForBlobs
Returns a copy 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 MsgPayForBlobs
impl Debug for MsgPayForBlobs
source§impl Default for MsgPayForBlobs
impl Default for MsgPayForBlobs
source§impl<'de> Deserialize<'de> for MsgPayForBlobswhere
MsgPayForBlobs: Default,
impl<'de> Deserialize<'de> for MsgPayForBlobswhere
MsgPayForBlobs: Default,
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 Message for MsgPayForBlobs
impl Message for MsgPayForBlobs
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq for MsgPayForBlobs
impl PartialEq for MsgPayForBlobs
source§impl Serialize for MsgPayForBlobs
impl Serialize for MsgPayForBlobs
impl StructuralPartialEq for MsgPayForBlobs
Auto Trait Implementations§
impl Freeze for MsgPayForBlobs
impl RefUnwindSafe for MsgPayForBlobs
impl Send for MsgPayForBlobs
impl Sync for MsgPayForBlobs
impl Unpin for MsgPayForBlobs
impl UnwindSafe for MsgPayForBlobs
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)