pub enum PayloadDescriptor {
Inline {
length: u64,
content_id: ContentId,
},
Blob {
length: u64,
content_id: ContentId,
},
Chunked {
length: u64,
manifest_id: ManifestId,
content_id: ContentId,
},
Manifest {
manifest_id: ManifestId,
},
StreamManifest {
manifest_id: ManifestId,
},
Collection {
members: Vec<ObjectId>,
},
}Variants§
Inline
Blob
Chunked
Manifest
Fields
§
manifest_id: ManifestIdStreamManifest
EXPERIMENTAL: streaming manifests are not implemented in v0.2.
Fields
§
manifest_id: ManifestIdCollection
Trait Implementations§
Source§impl Clone for PayloadDescriptor
impl Clone for PayloadDescriptor
Source§fn clone(&self) -> PayloadDescriptor
fn clone(&self) -> PayloadDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayloadDescriptor
impl Debug for PayloadDescriptor
Source§impl<'de> Deserialize<'de> for PayloadDescriptor
impl<'de> Deserialize<'de> for PayloadDescriptor
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 Eq for PayloadDescriptor
Source§impl PartialEq for PayloadDescriptor
impl PartialEq for PayloadDescriptor
Source§impl Serialize for PayloadDescriptor
impl Serialize for PayloadDescriptor
impl StructuralPartialEq for PayloadDescriptor
Auto Trait Implementations§
impl Freeze for PayloadDescriptor
impl RefUnwindSafe for PayloadDescriptor
impl Send for PayloadDescriptor
impl Sync for PayloadDescriptor
impl Unpin for PayloadDescriptor
impl UnsafeUnpin for PayloadDescriptor
impl UnwindSafe for PayloadDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.