mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
feat: better implementation of info rows
This commit is contained in:
parent
c42141f7c7
commit
5943fc86fb
3 changed files with 190 additions and 150 deletions
|
@ -27,7 +27,7 @@ pub enum ContentType {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Text {
|
||||
pub struct InfoText {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub characters: i32,
|
||||
|
@ -36,7 +36,7 @@ pub struct Text {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Image {
|
||||
pub struct InfoImage {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub dimensions: String,
|
||||
|
@ -45,7 +45,7 @@ pub struct Image {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct File {
|
||||
pub struct InfoFile {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub path: String,
|
||||
|
@ -54,26 +54,26 @@ pub struct File {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Link {
|
||||
pub struct InfoLink {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub title: String,
|
||||
pub link: String,
|
||||
pub title: Option<String>,
|
||||
pub url: String,
|
||||
pub characters: i32,
|
||||
pub copied: DateTime<Utc>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Color {
|
||||
pub struct InfoColor {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub hexcode: String,
|
||||
pub rgba: String,
|
||||
pub hex: String,
|
||||
pub rgb: String,
|
||||
pub copied: DateTime<Utc>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Code {
|
||||
pub struct InfoCode {
|
||||
pub source: String,
|
||||
pub content_type: ContentType,
|
||||
pub language: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue