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