#[non_exhaustive]pub enum BinaryEnvelope {
Inline {
mime: String,
sha256: String,
size: u64,
data_base64: String,
name: Option<String>,
},
Pointer {
mime: String,
sha256: String,
size: u64,
url: String,
name: Option<String>,
},
}Expand description
Envelope for binary assets delivered over the push channel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for BinaryEnvelope
impl Clone for BinaryEnvelope
Source§fn clone(&self) -> BinaryEnvelope
fn clone(&self) -> BinaryEnvelope
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 BinaryEnvelope
impl Debug for BinaryEnvelope
Source§impl<'de> Deserialize<'de> for BinaryEnvelope
impl<'de> Deserialize<'de> for BinaryEnvelope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BinaryEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BinaryEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BinaryEnvelope
impl Serialize for BinaryEnvelope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BinaryEnvelope
impl RefUnwindSafe for BinaryEnvelope
impl Send for BinaryEnvelope
impl Sync for BinaryEnvelope
impl Unpin for BinaryEnvelope
impl UnsafeUnpin for BinaryEnvelope
impl UnwindSafe for BinaryEnvelope
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