Struct SearchHint

Source
pub struct SearchHint {
Show 29 fields pub album: Option<String>, pub album_artist: Option<String>, pub album_id: Option<Uuid>, pub artists: Vec<String>, pub backdrop_image_item_id: Option<String>, pub backdrop_image_tag: Option<String>, pub channel_id: Option<Uuid>, pub channel_name: Option<String>, pub end_date: Option<DateTime<Utc>>, pub episode_count: Option<i32>, pub id: Option<Uuid>, pub index_number: Option<i32>, pub is_folder: Option<bool>, pub item_id: Option<Uuid>, pub matched_term: Option<String>, pub media_type: Option<MediaType>, pub name: Option<String>, pub parent_index_number: Option<i32>, pub primary_image_aspect_ratio: Option<f64>, pub primary_image_tag: Option<String>, pub production_year: Option<i32>, pub run_time_ticks: Option<i64>, pub series: Option<String>, pub song_count: Option<i32>, pub start_date: Option<DateTime<Utc>>, pub status: Option<String>, pub thumb_image_item_id: Option<String>, pub thumb_image_tag: Option<String>, pub type_: Option<BaseItemKind>,
}
Expand description

Class SearchHintResult.

JSON schema
{
 "description": "Class SearchHintResult.",
 "type": "object",
 "properties": {
   "Album": {
     "description": "Gets or sets the album.",
     "type": [
       "string",
       "null"
     ]
   },
   "AlbumArtist": {
     "description": "Gets or sets the album artist.",
     "type": [
       "string",
       "null"
     ]
   },
   "AlbumId": {
     "description": "Gets or sets the album id.",
     "type": [
       "string",
       "null"
     ],
     "format": "uuid"
   },
   "Artists": {
     "description": "Gets or sets the artists.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "BackdropImageItemId": {
     "description": "Gets or sets the backdrop image item identifier.",
     "type": [
       "string",
       "null"
     ]
   },
   "BackdropImageTag": {
     "description": "Gets or sets the backdrop image tag.",
     "type": [
       "string",
       "null"
     ]
   },
   "ChannelId": {
     "description": "Gets or sets the channel identifier.",
     "type": [
       "string",
       "null"
     ],
     "format": "uuid"
   },
   "ChannelName": {
     "description": "Gets or sets the name of the channel.",
     "type": [
       "string",
       "null"
     ]
   },
   "EndDate": {
     "description": "Gets or sets the end date.",
     "type": [
       "string",
       "null"
     ],
     "format": "date-time"
   },
   "EpisodeCount": {
     "description": "Gets or sets the episode count.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int32"
   },
   "Id": {
     "description": "Gets or sets the item id.",
     "type": "string",
     "format": "uuid"
   },
   "IndexNumber": {
     "description": "Gets or sets the index number.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int32"
   },
   "IsFolder": {
     "description": "Gets or sets a value indicating whether this
instance is folder.",
     "type": [
       "boolean",
       "null"
     ]
   },
   "ItemId": {
     "description": "Gets or sets the item id.",
     "deprecated": true,
     "type": "string",
     "format": "uuid"
   },
   "MatchedTerm": {
     "description": "Gets or sets the matched term.",
     "type": "string"
   },
   "MediaType": {
     "description": "Gets or sets the type of the media.",
     "allOf": [
       {
         "$ref": "#/components/schemas/MediaType"
       }
     ]
   },
   "Name": {
     "description": "Gets or sets the name.",
     "type": "string"
   },
   "ParentIndexNumber": {
     "description": "Gets or sets the parent index number.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int32"
   },
   "PrimaryImageAspectRatio": {
     "description": "Gets or sets the primary image aspect ratio.",
     "type": [
       "number",
       "null"
     ],
     "format": "double"
   },
   "PrimaryImageTag": {
     "description": "Gets or sets the image tag.",
     "type": [
       "string",
       "null"
     ]
   },
   "ProductionYear": {
     "description": "Gets or sets the production year.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int32"
   },
   "RunTimeTicks": {
     "description": "Gets or sets the run time ticks.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int64"
   },
   "Series": {
     "description": "Gets or sets the series.",
     "type": [
       "string",
       "null"
     ]
   },
   "SongCount": {
     "description": "Gets or sets the song count.",
     "type": [
       "integer",
       "null"
     ],
     "format": "int32"
   },
   "StartDate": {
     "description": "Gets or sets the start date.",
     "type": [
       "string",
       "null"
     ],
     "format": "date-time"
   },
   "Status": {
     "description": "Gets or sets the status.",
     "type": [
       "string",
       "null"
     ]
   },
   "ThumbImageItemId": {
     "description": "Gets or sets the thumb image item identifier.",
     "type": [
       "string",
       "null"
     ]
   },
   "ThumbImageTag": {
     "description": "Gets or sets the thumb image tag.",
     "type": [
       "string",
       "null"
     ]
   },
   "Type": {
     "description": "Gets or sets the type.",
     "allOf": [
       {
         "$ref": "#/components/schemas/BaseItemKind"
       }
     ]
   }
 },
 "additionalProperties": false
}

Fields§

§album: Option<String>

Gets or sets the album.

§album_artist: Option<String>

Gets or sets the album artist.

§album_id: Option<Uuid>

Gets or sets the album id.

§artists: Vec<String>

Gets or sets the artists.

§backdrop_image_item_id: Option<String>

Gets or sets the backdrop image item identifier.

§backdrop_image_tag: Option<String>

Gets or sets the backdrop image tag.

§channel_id: Option<Uuid>

Gets or sets the channel identifier.

§channel_name: Option<String>

Gets or sets the name of the channel.

§end_date: Option<DateTime<Utc>>

Gets or sets the end date.

§episode_count: Option<i32>

Gets or sets the episode count.

§id: Option<Uuid>

Gets or sets the item id.

§index_number: Option<i32>

Gets or sets the index number.

§is_folder: Option<bool>

Gets or sets a value indicating whether this instance is folder.

§item_id: Option<Uuid>

Gets or sets the item id.

§matched_term: Option<String>

Gets or sets the matched term.

§media_type: Option<MediaType>

Gets or sets the type of the media.

§name: Option<String>

Gets or sets the name.

§parent_index_number: Option<i32>

Gets or sets the parent index number.

§primary_image_aspect_ratio: Option<f64>

Gets or sets the primary image aspect ratio.

§primary_image_tag: Option<String>

Gets or sets the image tag.

§production_year: Option<i32>

Gets or sets the production year.

§run_time_ticks: Option<i64>

Gets or sets the run time ticks.

§series: Option<String>

Gets or sets the series.

§song_count: Option<i32>

Gets or sets the song count.

§start_date: Option<DateTime<Utc>>

Gets or sets the start date.

§status: Option<String>

Gets or sets the status.

§thumb_image_item_id: Option<String>

Gets or sets the thumb image item identifier.

§thumb_image_tag: Option<String>

Gets or sets the thumb image tag.

§type_: Option<BaseItemKind>

Gets or sets the type.

Implementations§

Trait Implementations§

Source§

impl Clone for SearchHint

Source§

fn clone(&self) -> SearchHint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SearchHint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SearchHint

Source§

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 From<&SearchHint> for SearchHint

Source§

fn from(value: &SearchHint) -> Self

Converts to this type from the input type.
Source§

impl From<SearchHint> for SearchHint

Source§

fn from(value: SearchHint) -> Self

Converts to this type from the input type.
Source§

impl Serialize for SearchHint

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<SearchHint> for SearchHint

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: SearchHint) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,