[−][src]Struct rustio::Client
Methods
impl Client
[src]
pub fn new(base_url: &str) -> Client
[src]
pub fn get_station_by_id(&mut self, id: u32) -> Result<Option<Station>, Error>
[src]
pub fn get_all_stations(&mut self) -> Result<Vec<Station>, Error>
[src]
pub fn get_all_codecs(&mut self) -> Result<Vec<Codec>, Error>
[src]
pub fn get_all_countries(&mut self) -> Result<Vec<Country>, Error>
[src]
pub fn get_all_languages(&mut self) -> Result<Vec<Language>, Error>
[src]
pub fn get_all_states(&mut self) -> Result<Vec<State>, Error>
[src]
pub fn get_all_tags(&mut self) -> Result<Vec<Tag>, Error>
[src]
pub fn get_stats(&mut self) -> Result<Stats, Error>
[src]
pub fn get_playable_station_url(
&mut self,
station: Station
) -> Result<String, Error>
[src]
&mut self,
station: Station
) -> Result<String, Error>
pub fn search(&mut self, data: StationSearch) -> Result<Vec<Station>, Error>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,