[−][src]Struct epitech_api::Client
Methods
impl Client
[src]
pub fn builder() -> ClientBuilder
[src]
pub async fn make_request<'_, T: ToString>(
&'_ self,
url: T
) -> Result<String, Error>
[src]
&'_ self,
url: T
) -> Result<String, Error>
pub fn fetch_student_list(&self) -> StudentListFetchBuilder
[src]
pub fn fetch_student_data(&self) -> StudentDataFetchBuilder
[src]
pub async fn fetch_student_netsoul<'a, '_>(
&'_ self,
login: &'a str
) -> Result<Vec<UserNetsoulEntry>, Error>
[src]
&'_ self,
login: &'a str
) -> Result<Vec<UserNetsoulEntry>, Error>
pub async fn fetch_own_student_netsoul<'_>(
&'_ self
) -> Result<Vec<UserNetsoulEntry>, Error>
[src]
&'_ self
) -> Result<Vec<UserNetsoulEntry>, Error>
pub async fn fetch_student_notes<'a, '_>(
&'_ self,
login: &'a str
) -> Result<UserNotes, Error>
[src]
&'_ self,
login: &'a str
) -> Result<UserNotes, Error>
pub async fn fetch_own_student_notes<'_>(&'_ self) -> Result<UserNotes, Error>
[src]
pub async fn fetch_student_binomes<'a, '_>(
&'_ self,
login: &'a str
) -> Result<UserBinome, Error>
[src]
&'_ self,
login: &'a str
) -> Result<UserBinome, Error>
pub async fn fetch_own_student_binomes<'_>(
&'_ self
) -> Result<UserBinome, Error>
[src]
&'_ self
) -> Result<UserBinome, Error>
pub async fn search_student<'_, '_>(
&'_ self,
login: &'_ str
) -> Result<Vec<UserSearchResultEntry>, Error>
[src]
&'_ self,
login: &'_ str
) -> Result<Vec<UserSearchResultEntry>, Error>
pub async fn fetch_available_courses<'_>(
&'_ self,
location: Location,
year: u32,
active: bool
) -> Result<Vec<AvailableCourseEntry>, Error>
[src]
&'_ self,
location: Location,
year: u32,
active: bool
) -> Result<Vec<AvailableCourseEntry>, Error>
pub async fn fetch_available_promos<'_, '_>(
&'_ self,
location: Location,
year: u32,
course: &'_ str,
active: bool
) -> Result<Vec<AvailablePromoEntry>, Error>
[src]
&'_ self,
location: Location,
year: u32,
course: &'_ str,
active: bool
) -> Result<Vec<AvailablePromoEntry>, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,