You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
391 B
Rust
19 lines
391 B
Rust
4 years ago
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||
|
pub struct ImageSettings {
|
||
|
pub format: Option<String>,
|
||
|
pub max_width: Option<u32>,
|
||
|
pub max_height: Option<u32>,
|
||
|
}
|
||
|
|
||
|
impl Default for ImageSettings {
|
||
|
fn default() -> Self {
|
||
|
Self {
|
||
|
format: None,
|
||
|
max_height: None,
|
||
|
max_width: None,
|
||
|
}
|
||
|
}
|
||
|
}
|