pub enum NodeSource {
Published {
release_manifest: NodeReleaseManifestBundle,
},
Preview {
manifest: String,
host_proof: String,
},
}Expand description
Explicit provenance: failed publisher validation never becomes Preview.
Variants§
Implementations§
Source§impl NodeSource
impl NodeSource
pub fn kind(&self) -> NodeSourceKind
pub fn manifest_sha256(&self) -> String
pub fn published(&self) -> Result<&NodeReleaseManifestBundle, String>
Trait Implementations§
Source§impl Clone for NodeSource
impl Clone for NodeSource
Source§impl Debug for NodeSource
impl Debug for NodeSource
Source§impl<'de> Deserialize<'de> for NodeSource
impl<'de> Deserialize<'de> for NodeSource
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 NodeSource
Source§impl PartialEq for NodeSource
impl PartialEq for NodeSource
Source§impl Serialize for NodeSource
impl Serialize for NodeSource
impl StructuralPartialEq for NodeSource
Auto Trait Implementations§
impl Forget for NodeSource
impl Freeze for NodeSource
impl Move for NodeSource
impl RefUnwindSafe for NodeSource
impl Send for NodeSource
impl Sync for NodeSource
impl Unpin for NodeSource
impl UnsafeUnpin for NodeSource
impl UnwindSafe for NodeSource
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.