pub enum FileContent {
Text(String),
Bytes(Vec<u8>),
}Expand description
Write/append payload. Mirrors the TS string | Uint8Array union.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for FileContent
impl Clone for FileContent
Source§impl Debug for FileContent
impl Debug for FileContent
Source§impl From<&str> for FileContent
impl From<&str> for FileContent
Source§impl From<String> for FileContent
impl From<String> for FileContent
Auto Trait Implementations§
impl Forget for FileContent
impl Freeze for FileContent
impl Move for FileContent
impl RefUnwindSafe for FileContent
impl Send for FileContentwhere
RawVecInner: Send,
impl Sync for FileContentwhere
RawVecInner: Sync,
impl Unpin for FileContent
impl UnsafeUnpin for FileContent
impl UnwindSafe for FileContentwhere
RawVecInner: UnwindSafe,
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