forked from Ruderverein-Donau-Linz/rowt
		
	send triptype to frontend
This commit is contained in:
		@@ -3,22 +3,23 @@ use serde::Serialize;
 | 
				
			|||||||
use sqlx::SqlitePool;
 | 
					use sqlx::SqlitePool;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use self::{
 | 
					use self::{
 | 
				
			||||||
    planned_event::{PlannedEvent, PlannedEventWithUser},
 | 
					    planned_event::{PlannedEvent, PlannedEventWithUserAndTriptype},
 | 
				
			||||||
    trip::{Trip, TripWithUser},
 | 
					    trip::{Trip, TripWithUserAndType},
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub mod log;
 | 
					pub mod log;
 | 
				
			||||||
pub mod planned_event;
 | 
					pub mod planned_event;
 | 
				
			||||||
pub mod trip;
 | 
					pub mod trip;
 | 
				
			||||||
pub mod tripdetails;
 | 
					pub mod tripdetails;
 | 
				
			||||||
 | 
					pub mod triptype;
 | 
				
			||||||
pub mod user;
 | 
					pub mod user;
 | 
				
			||||||
pub mod usertrip;
 | 
					pub mod usertrip;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[derive(Serialize)]
 | 
					#[derive(Serialize)]
 | 
				
			||||||
pub struct Day {
 | 
					pub struct Day {
 | 
				
			||||||
    day: NaiveDate,
 | 
					    day: NaiveDate,
 | 
				
			||||||
    planned_events: Vec<PlannedEventWithUser>,
 | 
					    planned_events: Vec<PlannedEventWithUserAndTriptype>,
 | 
				
			||||||
    trips: Vec<TripWithUser>,
 | 
					    trips: Vec<TripWithUserAndType>,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
impl Day {
 | 
					impl Day {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user