pub enum BlobSource {
File(PathBuf),
Bytes(Vec<u8>),
}Expand description
Where a blob’s bytes are before the manifest is published: a file on this
machine, or bytes a plugin produced. This is build-machine state and is
never part of a manifest — which is the whole difference from the file
and bytes sources it replaces.
Variants§
Trait Implementations§
Source§impl Clone for BlobSource
impl Clone for BlobSource
Source§impl Debug for BlobSource
impl Debug for BlobSource
Source§impl<'de> Deserialize<'de> for BlobSource
impl<'de> Deserialize<'de> for BlobSource
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 BlobSource
Source§impl PartialEq for BlobSource
impl PartialEq for BlobSource
Source§impl Serialize for BlobSource
impl Serialize for BlobSource
impl StructuralPartialEq for BlobSource
Auto Trait Implementations§
impl Freeze for BlobSource
impl RefUnwindSafe for BlobSource
impl Send for BlobSource
impl Sync for BlobSource
impl Unpin for BlobSource
impl UnsafeUnpin for BlobSource
impl UnwindSafe for BlobSource
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.