[][src]Struct epitech_api::Client

pub struct Client { /* fields omitted */ }

Methods

impl Client[src]

pub fn builder() -> ClientBuilder[src]

pub async fn make_request<'_, T: ToString>(
    &'_ self,
    url: T
) -> Result<String, Error>
[src]

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]

pub async fn fetch_own_student_netsoul<'_>(
    &'_ self
) -> Result<Vec<UserNetsoulEntry>, Error>
[src]

pub async fn fetch_student_notes<'a, '_>(
    &'_ self,
    login: &'a str
) -> Result<UserNotes, Error>
[src]

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]

pub async fn fetch_own_student_binomes<'_>(
    &'_ self
) -> Result<UserBinome, Error>
[src]

pub async fn search_student<'_, '_>(
    &'_ self,
    login: &'_ str
) -> Result<Vec<UserSearchResultEntry>, Error>
[src]

pub async fn fetch_available_courses<'_>(
    &'_ self,
    location: Location,
    year: u32,
    active: bool
) -> Result<Vec<AvailableCourseEntry>, Error>
[src]

pub async fn fetch_available_promos<'_, '_>(
    &'_ self,
    location: Location,
    year: u32,
    course: &'_ str,
    active: bool
) -> Result<Vec<AvailablePromoEntry>, Error>
[src]

Trait Implementations

impl Clone for Client[src]

impl Debug for Client[src]

impl Default for Client[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.