pub struct Series {
pub id: i64,
pub name: String,
pub name_en: Option<String>,
pub name_romaji: Option<String>,
/* private fields */
}Expand description
作品群
Fields§
§id: i64§name: String§name_en: Option<String>§name_romaji: Option<String>Implementations§
Source§impl Series
impl Series
Sourcepub fn works(&self) -> Variables
pub fn works(&self) -> Variables
作品群に含まれる作品を検索します。
§使用例
use libannict::{Annict, AnnictObject, Series};
let client = Annict::new("access_token")?;
let works = client
.works()
.filter_title("とある魔術の禁書目録".to_owned())
.search(1)
.await?;
let series_list = works[0].series().search(&client, 2).await?;
for series in series_list {
let works = series.works().search(&client, 20).await?;
println!("「{}」シリーズの作品", series.name);
for work in works {
println!(" -「{}」", work.title);
}
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnwindSafe for Series
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