pub enum CatalogCandidateSource {
Url(CatalogCandidateSourceUrl),
Embedded(CatalogCandidateSourceEmbedded),
}Expand description
Where a candidate’s card came from. Exactly one of a URL or embedded data: the union has no variant carrying both, and no variant carrying neither, so the rule holds structurally rather than by validation.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Url(CatalogCandidateSourceUrl)
Embedded(CatalogCandidateSourceEmbedded)
Trait Implementations§
Source§impl Clone for CatalogCandidateSource
impl Clone for CatalogCandidateSource
Source§fn clone(&self) -> CatalogCandidateSource
fn clone(&self) -> CatalogCandidateSource
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 CatalogCandidateSource
impl Debug for CatalogCandidateSource
Source§impl<'de> Deserialize<'de> for CatalogCandidateSource
impl<'de> Deserialize<'de> for CatalogCandidateSource
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 CatalogCandidateSource
impl RefUnwindSafe for CatalogCandidateSource
impl Send for CatalogCandidateSource
impl Sync for CatalogCandidateSource
impl Unpin for CatalogCandidateSource
impl UnsafeUnpin for CatalogCandidateSource
impl UnwindSafe for CatalogCandidateSource
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