[−][src]Struct schoolnoose::client::SnClient
SnClient represents a connection with the Schoolloop API and is the main point of interaction for this library
Methods
impl SnClient
[src]
pub fn new() -> SnClient
[src]
Creates a new Client
pub fn login(&self, login: Login) -> Result<User, SnError>
[src]
Sends login details to the Schoolloop Api, and returns a User upon success. Err result indicates that user has incorrect credentials
pub fn get_classes(&self, user: &User) -> Result<Classes, SnError>
[src]
Gets the classes of a user Returns Err if User was not created correctly, and could not fetch from API
Auto Trait Implementations
impl !RefUnwindSafe for SnClient
impl Send for SnClient
impl Sync for SnClient
impl Unpin for SnClient
impl !UnwindSafe for SnClient
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, 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>,