Struct sunk::RadioStation
source · pub struct RadioStation {
pub name: String,
pub stream_url: String,
pub homepage_url: Option<String>,
/* private fields */
}
Fields
name: String
stream_url: String
homepage_url: Option<String>
Implementations
sourceimpl RadioStation
impl RadioStation
pub fn id(&self) -> usize
pub fn list(client: &Client) -> Result<Vec<RadioStation>>
pub fn create(
client: &Client,
name: &str,
url: &str,
homepage: Option<&str>
) -> Result<()>
pub fn update(&self, client: &Client) -> Result<()>
pub fn delete(&self, client: &Client) -> Result<()>
Trait Implementations
sourceimpl Debug for RadioStation
impl Debug for RadioStation
sourceimpl<'de> Deserialize<'de> for RadioStation
impl<'de> Deserialize<'de> for RadioStation
sourcefn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RadioStation
impl Send for RadioStation
impl Sync for RadioStation
impl Unpin for RadioStation
impl UnwindSafe for RadioStation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more