[−][src]Trait zju_jw_scraper::JWService
Associated Types
type Err
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,
&'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,
&'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,
&'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,
&'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,
&'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,
&'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,
&'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,
Implementors
impl<T> JWService for T where
T: HttpClient,
[src]
T: HttpClient,
type Err = Self::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,
[src]
&'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,
[src]
&'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,
[src]
&'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,
[src]
&'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,
[src]
&'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,
[src]
&'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,
[src]
&'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,