Struct epitech_api::EpitechClient
source · pub struct EpitechClient { /* private fields */ }
Implementations
sourceimpl EpitechClient
impl EpitechClient
pub fn builder() -> EpitechClientBuilder
pub fn make_request<T: ToString>(
&self,
url: T
) -> Result<String, EpitechClientError>
pub fn fetch_student_list(&self) -> StudentListFetchBuilder
pub fn fetch_student_data(&self) -> StudentDataFetchBuilder
pub fn fetch_student_netsoul<'a>(
&self,
login: &'a str
) -> Result<Vec<UserNetsoulEntry>, EpitechClientError>
pub fn fetch_own_student_netsoul(
&self
) -> Result<Vec<UserNetsoulEntry>, EpitechClientError>
pub fn fetch_student_notes<'a>(
&self,
login: &'a str
) -> Result<UserNotes, EpitechClientError>
pub fn fetch_own_student_notes(&self) -> Result<UserNotes, EpitechClientError>
pub fn fetch_student_binomes<'a>(
&self,
login: &'a str
) -> Result<UserBinome, EpitechClientError>
pub fn fetch_own_student_binomes(
&self
) -> Result<UserBinome, EpitechClientError>
pub fn search_student(
&self,
login: &str
) -> Result<Vec<UserSearchResultEntry>, EpitechClientError>
pub fn fetch_available_courses(
&self,
location: Location,
year: u32,
active: bool
) -> Result<Vec<AvailableCourseEntry>, EpitechClientError>
pub fn fetch_available_promos(
&self,
location: Location,
year: u32,
course: &str,
active: bool
) -> Result<Vec<AvailablePromoEntry>, EpitechClientError>
Trait Implementations
sourceimpl Clone for EpitechClient
impl Clone for EpitechClient
sourcefn clone(&self) -> EpitechClient
fn clone(&self) -> EpitechClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EpitechClient
impl Debug for EpitechClient
sourceimpl Default for EpitechClient
impl Default for EpitechClient
sourcefn default() -> EpitechClient
fn default() -> EpitechClient
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for EpitechClient
impl Send for EpitechClient
impl Sync for EpitechClient
impl Unpin for EpitechClient
impl !UnwindSafe for EpitechClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more