pub struct Author {
pub id: Option<String>,
pub name: Option<String>,
pub slug: Option<String>,
pub image: Option<String>,
}Expand description
Author model containing information about an author
This struct represents an author with their identification, name, slug, and image.
§Examples
use qobuz_api_rust::models::Author;
let author = Author {
id: Some("author123".to_string()),
name: Some("John Doe".to_string()),
slug: Some("john-doe".to_string()),
..Default::default()
};Fields§
§id: Option<String>Unique identifier for the author
name: Option<String>Name of the author
slug: Option<String>URL-friendly slug for the author
image: Option<String>URL to the author’s image
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Author
impl<'de> Deserialize<'de> for Author
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
Auto Trait Implementations§
impl Freeze for Author
impl RefUnwindSafe for Author
impl Send for Author
impl Sync for Author
impl Unpin for Author
impl UnwindSafe for Author
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