pub struct Session { /* private fields */ }
Implementations§
source§impl Session
impl Session
pub fn new(cookie: String, year: u16, day: u8) -> Self
pub fn from_pattern( cookie: String, input: String, pattern: Regex, ) -> Result<Self, String>
pub async fn get_sample_input_text( &self, nth: u8, ) -> Result<String, Box<dyn Error>>
pub async fn get_sample_input_lines( &self, nth: u8, ) -> Result<Vec<String>, Box<dyn Error>>
pub async fn get_input_text(&self) -> Result<String, Box<dyn Error>>
pub async fn get_input_lines(&self) -> Result<Vec<String>, Box<dyn Error>>
pub async fn get_all_stars(&self) -> Result<HashMap<u16, u8>, Box<dyn Error>>
pub async fn submit_anwer( &self, part: u8, answer: &str, ) -> Result<Response, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more