pub struct ReadMessageOptions {
pub encoding: Option<Encoding>,
pub continuation_token: Option<String>,
pub data_chunk_size: Option<usize>,
pub async_: Option<bool>,
}
Expand description
Option settings for reading a message.
Fields§
§encoding: Option<Encoding>
The text encoding to be used for the message’s contents.
Default value: Encoding::UTF8
.
continuation_token: Option<String>
Continuation token for reading the next message data chunk.
Note: this should be supplied when reading the message in chunks, or when reading the message asynchronously after the processing was complete.
data_chunk_size: Option<usize>
Size, in bytes, of the largest message data chunk that should be returned.
It must be an integer value between 1,024 (1 KB) and 15,728,640 (15 MB).
async_: Option<bool>
Indicates whether processing — retrieval of message from the blockchain — should be done asynchronously.
Trait Implementations§
Source§impl Clone for ReadMessageOptions
impl Clone for ReadMessageOptions
Source§fn clone(&self) -> ReadMessageOptions
fn clone(&self) -> ReadMessageOptions
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 ReadMessageOptions
impl Debug for ReadMessageOptions
Source§impl PartialEq for ReadMessageOptions
impl PartialEq for ReadMessageOptions
impl Eq for ReadMessageOptions
impl StructuralPartialEq for ReadMessageOptions
Auto Trait Implementations§
impl Freeze for ReadMessageOptions
impl RefUnwindSafe for ReadMessageOptions
impl Send for ReadMessageOptions
impl Sync for ReadMessageOptions
impl Unpin for ReadMessageOptions
impl UnwindSafe for ReadMessageOptions
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<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.