Struct seiri::Track
[−]
[src]
pub struct Track { pub file_path: String, pub title: String, pub artist: String, pub album_artists: Vec<String>, pub album: String, pub year: i32, pub track_number: i32, pub musicbrainz_track_id: Option<String>, pub has_front_cover: bool, pub front_cover_height: i32, pub front_cover_width: i32, pub bitrate: i32, pub sample_rate: i32, pub source: String, pub disc_number: i32, pub duration: i32, pub file_type: TrackFileType, pub updated: String, }
Fields
file_path: String
title: String
artist: String
album_artists: Vec<String>
album: String
year: i32
track_number: i32
musicbrainz_track_id: Option<String>
has_front_cover: bool
front_cover_height: i32
front_cover_width: i32
bitrate: i32
sample_rate: i32
source: String
disc_number: i32
duration: i32
file_type: TrackFileType
updated: String
Trait Implementations
impl Debug for Track
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl GraphQLType for Track
[src]
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &()) -> Option<&str>
[src]
The name of the GraphQL type to expose. Read more
fn concrete_type_name(&self, _: &Self::Context) -> String
[src]
Return the concrete type name for this instance/union. Read more
fn meta<'r>(_: &(), registry: &mut Registry<'r>) -> MetaType<'r>
[src]
The meta type representing this GraphQL type.
fn resolve_field(
&self,
_: &(),
field_name: &str,
_: &Arguments,
executor: &Executor<Self::Context>
) -> ExecutionResult
[src]
&self,
_: &(),
field_name: &str,
_: &Arguments,
executor: &Executor<Self::Context>
) -> ExecutionResult
Resolve the value of a single field on this type. Read more
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection]>,
executor: &Executor<Self::Context>
) -> Result<Value, FieldError>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection]>,
executor: &Executor<Self::Context>
) -> Result<Value, FieldError>
Resolve this interface or union into a concrete type Read more
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection]>,
executor: &Executor<Self::Context>
) -> Value
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection]>,
executor: &Executor<Self::Context>
) -> Value
Resolve the provided selection set against the current object. Read more