Enum atrium_xrpc::InputDataOrBytes
source · pub enum InputDataOrBytes<T>where
T: Serialize,{
Data(T),
Bytes(Vec<u8>),
}
Expand description
A type which can be used as a parameter of XrpcRequest
.
JSON serializable data or raw bytes.
Variants§
Auto Trait Implementations§
impl<T> RefUnwindSafe for InputDataOrBytes<T>where
T: RefUnwindSafe,
impl<T> Send for InputDataOrBytes<T>where
T: Send,
impl<T> Sync for InputDataOrBytes<T>where
T: Sync,
impl<T> Unpin for InputDataOrBytes<T>where
T: Unpin,
impl<T> UnwindSafe for InputDataOrBytes<T>where
T: 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