[−][src]Struct epitok::event::Event
Event
Information about an event
Fields
code: Code
Code of event
students: Vec<Student>
Registered students
Implementations
impl Event
[src]
pub fn code(&self) -> String
[src]
pub fn intra_page(&self) -> String
[src]
pub fn title(&self) -> &str
[src]
Get name
pub fn module(&self) -> &str
[src]
Get module name
pub fn start(&self) -> &str
[src]
Get start time in HH:MM
format
pub fn end(&self) -> &str
[src]
Get finish time in HH:MM
format
pub fn students(&mut self) -> &mut Vec<Student>
[src]
Get mutable list of students
pub fn set_student_presence(&mut self, login: &str, presence: Presence) -> bool
[src]
Set presence type of a student
Arguments
login
- Student email addresspresence
- Type of presence to set
pub fn set_student_present(&mut self, login: &str) -> bool
[src]
pub fn set_student_missing(&mut self, login: &str) -> bool
[src]
pub fn set_student_none(&mut self, login: &str) -> bool
[src]
pub fn set_student_not_applicable(&mut self, login: &str) -> bool
[src]
pub fn set_all_students_present(&mut self)
[src]
Set all students as present
pub fn set_all_students_missing(&mut self)
[src]
Set all students as missing
pub fn set_all_students_none(&mut self)
[src]
Remove presences for all students
pub fn set_all_students_not_applicable(&mut self)
[src]
Set presences for all students as Not applicable
pub fn set_remaining_students_present(&mut self)
[src]
Set students who do not have a presence status as present
pub fn set_remaining_students_missing(&mut self)
[src]
Set students who do not have a presence status as missing
pub async fn fetch_students<'_, '_>(
&'_ mut self,
autologin: &'_ str
) -> Result<usize, Box<dyn Error>>
[src]
&'_ mut self,
autologin: &'_ str
) -> Result<usize, Box<dyn Error>>
Fetch list of students from an existing event
By default when you fetch an event, its students list is empty. It can be populated using this function.
pub async fn save_changes<'_, '_>(
&'_ mut self,
autologin: &'_ str
) -> Result<(), Box<dyn Error>>
[src]
&'_ mut self,
autologin: &'_ str
) -> Result<(), Box<dyn Error>>
Save changes to the intra (upload them)
Arguments
autologin
- Autologin link. If you use theepitok::auth::Auth
struct, use itsget_autologin
method
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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>,