pub enum ContentSelection {
UnspecifiedLegacy,
Source,
Documentation,
Both,
}Expand description
Caller selection applied to classified repository content.
Variants§
UnspecifiedLegacy
The request omitted selection and must retain the legacy candidate universe.
Source
Select only source files for ordinary candidates and graph frontiers.
Documentation
Select only documentation for ordinary candidates and graph frontiers.
Both
Select source and documentation while excluding other classifications.
Implementations§
Source§impl ContentSelection
impl ContentSelection
Sourcepub const fn explicit_value(self) -> Option<&'static str>
pub const fn explicit_value(self) -> Option<&'static str>
Return the explicit wire spelling, or None for an omitted legacy request.
Sourcepub const fn includes(self, classification: ContentClassification) -> bool
pub const fn includes(self, classification: ContentClassification) -> bool
Return whether the classification belongs to this selection.
Trait Implementations§
Source§impl Clone for ContentSelection
impl Clone for ContentSelection
Source§fn clone(&self) -> ContentSelection
fn clone(&self) -> ContentSelection
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 moreimpl Copy for ContentSelection
Source§impl Debug for ContentSelection
impl Debug for ContentSelection
Source§impl Default for ContentSelection
impl Default for ContentSelection
Source§fn default() -> ContentSelection
fn default() -> ContentSelection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentSelection
impl<'de> Deserialize<'de> for ContentSelection
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 ContentSelection
Source§impl FromStr for ContentSelection
impl FromStr for ContentSelection
Source§impl Hash for ContentSelection
impl Hash for ContentSelection
Source§impl PartialEq for ContentSelection
impl PartialEq for ContentSelection
Source§fn eq(&self, other: &ContentSelection) -> bool
fn eq(&self, other: &ContentSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentSelection
impl Serialize for ContentSelection
impl StructuralPartialEq for ContentSelection
Auto Trait Implementations§
impl Freeze for ContentSelection
impl RefUnwindSafe for ContentSelection
impl Send for ContentSelection
impl Sync for ContentSelection
impl Unpin for ContentSelection
impl UnsafeUnpin for ContentSelection
impl UnwindSafe for ContentSelection
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.