pub struct List {Show 13 fields
pub title: String,
pub description: Option<String>,
pub author: String,
pub slug: String,
pub url: String,
pub film_count: u32,
pub likes: u32,
pub comments: u32,
pub is_ranked: bool,
pub films: Vec<ListFilm>,
pub tags: Vec<String>,
pub created_date: Option<String>,
pub updated_date: Option<String>,
}Fields§
§title: String§description: Option<String>§slug: String§url: String§film_count: u32§likes: u32§comments: u32§is_ranked: bool§films: Vec<ListFilm>§created_date: Option<String>§updated_date: Option<String>Implementations§
Source§impl List
impl List
pub async fn new(author: &str, slug: &str) -> Result<Self>
pub async fn from_url(url: &str) -> Result<Self>
pub async fn get_comments(&self) -> Result<Vec<ListComment>>
pub fn get_film_by_position(&self, position: u32) -> Option<&ListFilm>
pub fn get_films_by_year(&self, year: i32) -> Vec<&ListFilm>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for List
impl<'de> Deserialize<'de> for List
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 List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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