[][src]Struct schoolnoose::client::SnClient

pub struct SnClient { /* fields omitted */ }

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]

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,