[][src]Trait zju_jw_scraper::JWService

pub trait JWService {
    type Err;
    fn login<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        password: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<String, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_course_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<CourseInfo, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_course<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        school_year: SchoolYear,
        semester: CourseSemester,
        cookie: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Course>, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_exams<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        school_year: SchoolYear,
        semester: ExamSemester,
        cookie: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Exam>, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_scores<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        cookie: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Score>, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_major_scores<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        cookie: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<MajorScore>, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_total_credit<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        stu_id: &'life1 str,
        cookie: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<f32, Self::Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type Err

Loading content...

Required methods

fn login<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<String, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_course_info<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<CourseInfo, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

fn get_course<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    school_year: SchoolYear,
    semester: CourseSemester,
    cookie: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<Course>, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_exams<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    school_year: SchoolYear,
    semester: ExamSemester,
    cookie: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<Exam>, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_scores<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    cookie: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<Score>, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_major_scores<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    cookie: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<MajorScore>, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_total_credit<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    stu_id: &'life1 str,
    cookie: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<f32, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<T> JWService for T where
    T: HttpClient
[src]

type Err = Self::Err

Loading content...