Struct catenis_api_client::api::ReadMessageOptions
source · 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
sourceimpl Clone for ReadMessageOptions
impl Clone for ReadMessageOptions
sourcefn clone(&self) -> ReadMessageOptions
fn clone(&self) -> ReadMessageOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ReadMessageOptions
impl Debug for ReadMessageOptions
sourceimpl PartialEq<ReadMessageOptions> for ReadMessageOptions
impl PartialEq<ReadMessageOptions> for ReadMessageOptions
sourcefn eq(&self, other: &ReadMessageOptions) -> bool
fn eq(&self, other: &ReadMessageOptions) -> bool
impl Eq for ReadMessageOptions
impl StructuralEq for ReadMessageOptions
impl StructuralPartialEq for ReadMessageOptions
Auto Trait Implementations
impl RefUnwindSafe for ReadMessageOptions
impl Send for ReadMessageOptions
impl Sync for ReadMessageOptions
impl Unpin for ReadMessageOptions
impl UnwindSafe for ReadMessageOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.