File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ pub enum KnownFormats {
184
184
SEDML ,
185
185
/// Systems Biology Graphical Notation (SBGN)
186
186
SBGN ,
187
+ /// Tab-separated values (TSV)
188
+ TSV ,
189
+ /// Comma-separated values (CSV)
190
+ CSV ,
187
191
}
188
192
189
193
impl FromStr for KnownFormats {
@@ -208,6 +212,10 @@ impl FromStr for KnownFormats {
208
212
Ok ( KnownFormats :: SEDML )
209
213
}
210
214
"http://identifiers.org/combine.specifications/sbgn" | "sbgn" => Ok ( KnownFormats :: SBGN ) ,
215
+ "https://purl.org/NET/mediatypes/text/tab-separated-values" | "tsv" => {
216
+ Ok ( KnownFormats :: TSV )
217
+ }
218
+ "https://purl.org/NET/mediatypes/text/csv" | "csv" => Ok ( KnownFormats :: CSV ) ,
211
219
_ => Err ( format ! ( "Unknown format: {}" , s) ) ,
212
220
}
213
221
}
@@ -229,6 +237,11 @@ impl Display for KnownFormats {
229
237
write ! ( f, "http://identifiers.org/combine.specifications/sed" )
230
238
}
231
239
KnownFormats :: SBGN => write ! ( f, "http://identifiers.org/combine.specifications/sbgn" ) ,
240
+ KnownFormats :: TSV => write ! (
241
+ f,
242
+ "https://purl.org/NET/mediatypes/text/tab-separated-values"
243
+ ) ,
244
+ KnownFormats :: CSV => write ! ( f, "https://purl.org/NET/mediatypes/text/csv" ) ,
232
245
}
233
246
}
234
247
}
You can’t perform that action at this time.
0 commit comments