pub struct Config {
pub authorization: HashMap<String, String>,
pub video_source: PathBuf,
pub video_host: String,
pub video_port: i32,
pub session_duration: i32,
pub file_formats: Vec<String>,
pub workers: i32,
pub max_connections: i32,
pub websites: Vec<String>,
pub secure_session: bool,
pub key_file: PathBuf,
pub cert_file: PathBuf,
}Expand description
Represents the configuration parameters for RuStream.
Fields§
Dictionary of key-value pairs for authorization (username and password).
video_source: PathBufSource path for video files.
video_host: StringHost IP address for video hosting.
video_port: i32Port number for hosting the application.
session_duration: i32Duration of a session in seconds.
file_formats: Vec<String>List of supported video file formats.
workers: i32Number of worker threads to spin up the server.
max_connections: i32Maximum number of concurrent connections.
websites: Vec<String>List of websites (supports regex) to add to CORS configuration.
secure_session: bool§key_file: PathBuf§cert_file: PathBufTrait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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