pub struct ExclusionCandidate {
pub id: String,
pub name: String,
pub library_name: String,
pub is_library: bool,
}Expand description
Something the user may choose to hide: a library, or a folder directly inside one.
Which containers are offerable is a domain question (it depends on the library’s Jellyfin collection type and on what counts as a folder), so the list is assembled here and the frontend renders it verbatim.
TRACES: UR-076 | DR-209
Fields§
§id: StringStable Jellyfin item id — what gets stored when the user picks it.
name: StringDisplay name of the folder (or of the library, for a whole-library entry).
library_name: StringLibrary this candidate lives in, so the picker can group and disambiguate two folders that share a name.
is_library: boolTrue when the candidate is a library rather than a folder inside one.
Trait Implementations§
Source§impl Clone for ExclusionCandidate
impl Clone for ExclusionCandidate
Source§fn clone(&self) -> ExclusionCandidate
fn clone(&self) -> ExclusionCandidate
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 ExclusionCandidate
impl Debug for ExclusionCandidate
Source§impl<'de> Deserialize<'de> for ExclusionCandidate
impl<'de> Deserialize<'de> for ExclusionCandidate
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
Source§impl NamedType for ExclusionCandidate
impl NamedType for ExclusionCandidate
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to [Type::inline] but returns a [NamedDataType] instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a [NamedDataType] instead.
Source§impl Serialize for ExclusionCandidate
impl Serialize for ExclusionCandidate
Source§impl Type for ExclusionCandidate
impl Type for ExclusionCandidate
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for ExclusionCandidate
Auto Trait Implementations§
impl Freeze for ExclusionCandidate
impl RefUnwindSafe for ExclusionCandidate
impl Send for ExclusionCandidate
impl Sync for ExclusionCandidate
impl Unpin for ExclusionCandidate
impl UnsafeUnpin for ExclusionCandidate
impl UnwindSafe for ExclusionCandidate
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> FunctionArg for Twhere
T: Type,
impl<T> FunctionArg for Twhere
T: Type,
§fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
Gets the type of an argument as a [
DataType]. Read more