pub enum FileBytes {
Base64(String),
Bytes(Vec<u8>),
}Expand description
Either raw bytes or a base64-encoded string.
Providers serialize bytes as base64 on the wire; this enum lets callers hand off whichever they have without paying a re-encode cost.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileBytes
impl<'de> Deserialize<'de> for FileBytes
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 StructuralPartialEq for FileBytes
Auto Trait Implementations§
impl Freeze for FileBytes
impl RefUnwindSafe for FileBytes
impl Send for FileBytes
impl Sync for FileBytes
impl Unpin for FileBytes
impl UnsafeUnpin for FileBytes
impl UnwindSafe for FileBytes
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