Skip to content

Commit

Permalink
Impl Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored May 14, 2024
1 parent 6e22781 commit 38fa1ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl Iterator for LinkIter {
}
}

#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Font {
pub name: String,
pub family: String,
Expand All @@ -380,15 +380,15 @@ pub struct Font {
pub size: u32,
}

#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct BBox {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}

#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Line {
pub wmode: u32,
pub bbox: BBox,
Expand All @@ -398,15 +398,15 @@ pub struct Line {
pub text: String,
}

#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Block {
pub r#type: String,
pub bbox: BBox,
pub lines: Vec<Line>,
}

// StructuredText
#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct StextPage {
pub blocks: Vec<Block>,
}
Expand Down

0 comments on commit 38fa1ff

Please sign in to comment.