pub struct WasmResponse {
pub payload: Vec<u8>,
pub ordering: Option<u64>,
pub event_id_salt: Option<Vec<u8>>,
}Fields§
§payload: Vec<u8>§ordering: Option<u64>§event_id_salt: Option<Vec<u8>>Implementations§
Source§impl WasmResponse
impl WasmResponse
Sourcepub const DEFAULT_MAX_PAYLOAD_SIZE: usize
pub const DEFAULT_MAX_PAYLOAD_SIZE: usize
Default maximum payload size: 50 MB
Sourcepub const DEFAULT_MAX_SALT_SIZE: usize
pub const DEFAULT_MAX_SALT_SIZE: usize
Default maximum event_id_salt size: 1 MB
Sourcepub fn validate_size(
&self,
max_payload_size: usize,
max_salt_size: usize,
) -> Result<(), WasmResponseSizeError>
pub fn validate_size( &self, max_payload_size: usize, max_salt_size: usize, ) -> Result<(), WasmResponseSizeError>
Validates that the payload and salt are within size limits.
Trait Implementations§
Source§impl Clone for WasmResponse
impl Clone for WasmResponse
Source§fn clone(&self) -> WasmResponse
fn clone(&self) -> WasmResponse
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 ComposeSchema for WasmResponse
impl ComposeSchema for WasmResponse
Source§impl Debug for WasmResponse
impl Debug for WasmResponse
Source§impl Default for WasmResponse
impl Default for WasmResponse
Source§fn default() -> WasmResponse
fn default() -> WasmResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WasmResponsewhere
WasmResponse: Default,
impl<'de> Deserialize<'de> for WasmResponsewhere
WasmResponse: 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
impl Eq for WasmResponse
Source§impl PartialEq for WasmResponse
impl PartialEq for WasmResponse
Source§fn eq(&self, other: &WasmResponse) -> bool
fn eq(&self, other: &WasmResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WasmResponse
impl Serialize for WasmResponse
impl StructuralPartialEq for WasmResponse
Auto Trait Implementations§
impl Freeze for WasmResponse
impl RefUnwindSafe for WasmResponse
impl Send for WasmResponse
impl Sync for WasmResponse
impl Unpin for WasmResponse
impl UnsafeUnpin for WasmResponse
impl UnwindSafe for WasmResponse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more