Crate zeroten_denote
source ·Expand description
Handle denote name scheme.
Core of this crate is the Denote
struct. Create it, fill in the fields as an option and
convert it in to string to get formatted string in denote name scheme.
§Example
use zeroten_denote::{Denote, Identifier, Signature, Extension, Title};
// You can use something like `Identifier::now()` but for example, we will take an already
// formatted identifier
let identifier = Identifier::parse("20240912T13015412").unwrap();
let denote = Denote::new(identifier)
.title(Title::parse("Some title").unwrap())
.signature(Signature::parse("1b").unwrap())
.extension(Extension::new("txt").unwrap())
.to_string();
assert_eq!(denote.to_string(), "20240912T13015412==1b--some-title.txt");
Structs§
- Handle denote name scheme
- Represent file extension
- Identifier is a date and time formatted as “20240912T13015412” and represent unic identifier for file
- Represent keyword in denote name scheme
- Represent signature in denote name scuheme
- Represent title in denote name scheme