shadow_drive_sdk/models/
payload.rs

1use bytes::Bytes;
2use std::path::PathBuf;
3
4/// [`Payload`] is an enum containing the types that the
5/// SDK can upload to ShadowDrive. Each variant is expected to implement [`PayloadExt`] so the SDK
6/// can derive required upload metadata.
7#[derive(Debug, Clone)]
8pub enum Payload {
9    File(PathBuf),
10    Bytes(Bytes),
11}