From 75949cebdd61dd8f0d06f2e47081c460e2a442f0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 22 Dec 2023 23:57:03 +0100 Subject: rework import system pt. 8: federated streams & change jhls --- common/src/user.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'common/src/user.rs') diff --git a/common/src/user.rs b/common/src/user.rs index 466423c..7e654a9 100644 --- a/common/src/user.rs +++ b/common/src/user.rs @@ -7,7 +7,10 @@ use crate::{stream::StreamFormat, user}; #[cfg(feature = "rocket")] use rocket::{FromFormField, UriDisplayQuery}; use serde::{Deserialize, Serialize}; -use std::{collections::HashMap, fmt::Display}; +use std::{ + collections::{HashMap, HashSet}, + fmt::Display, +}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct User { @@ -32,6 +35,14 @@ pub enum WatchedState { Watched, } +#[derive(Debug, Serialize, Deserialize)] +pub struct CreateSessionParams { + pub username: String, + pub password: String, + pub expire: Option, + pub drop_permissions: Option>, +} + #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)] #[cfg_attr(feature = "rocket", derive(FromFormField, UriDisplayQuery))] #[serde(rename_all = "snake_case")] -- cgit v1.2.3-70-g09d2