#[non_exhaustive]pub enum DataRef {
Local {
path: String,
},
S3 {
bucket: String,
key: String,
region: Option<String>,
},
Cached {
cache_key: CacheKey,
},
Stream {
endpoint: String,
format: StreamFormat,
},
Inline {
value: Value,
},
Zarr {
bucket: String,
array_path: String,
region: Option<String>,
},
}Expand description
A reference to data that may live in different places. Workers exchange DataRefs instead of raw data.
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.
Local
Data in local filesystem
S3
Data in S3-compatible object storage
Cached
Data in Soma cache (content-addressable)
Stream
Data available as a stream endpoint
Inline
Data materialized inline (small values only)
Zarr
Data stored as a Zarr v3 array in object storage (chunked tensors).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataRef
impl<'de> Deserialize<'de> for DataRef
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
Auto Trait Implementations§
impl Freeze for DataRef
impl RefUnwindSafe for DataRef
impl Send for DataRef
impl Sync for DataRef
impl Unpin for DataRef
impl UnsafeUnpin for DataRef
impl UnwindSafe for DataRef
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