blue_archive 0.5.2

A Blue Archive api wrapper for Rust, based off of SchaleDB's data: https://github.com/lonqie/SchaleDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anyhow::Result;
use blue_archive::Language;

pub fn main() -> Result<()> {
    // You can obtain the students in a blocking context now.
    let students = blue_archive::blocking::get_all_students(Language::English)?;
    println!("# of students: {}", students.len());
    // You may also use filtering and the StudentFetcher as you would usually do, though with blocking you will have to use the `new_blocking` function.
    let fetched = blue_archive::StudentFetcher::new_blocking(Language::Japanese)?;
    if let Some(student) = fetched.get_random_student() {
        println!("Randomized Student: [{student}]")
    }
    Ok(())
}