Skip to content

Commit fccac86

Browse files
committed
Adding manufacturer to Thread
1 parent 2e24f67 commit fccac86

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

embroidery-lib/src/stitch.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,13 @@ A stitch represents the x,y coordinates in millimeters.
1313
use crate::colors::Color;
1414
use std::collections::BTreeMap;
1515

16-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
17-
pub enum ThreadAttribute {
18-
Manufacturer,
19-
Code,
20-
Name,
21-
Arbitary(String),
22-
}
23-
2416
#[derive(Clone, Default, Debug, PartialEq)]
2517
pub struct Thread {
2618
pub color: Color,
2719
pub name: String,
2820
pub code: String,
29-
pub attributes: BTreeMap<ThreadAttribute, String>,
21+
pub manufacturer: Option<String>,
22+
pub attributes: BTreeMap<String, String>,
3023
}
3124

3225
impl Thread {
@@ -36,6 +29,7 @@ impl Thread {
3629
color,
3730
name,
3831
code,
32+
manufacturer: None,
3933
attributes: BTreeMap::new(),
4034
}
4135
}

0 commit comments

Comments
 (0)