Support dates as metadata values

korrat
Dec 17, 2023, 10:27 AM
Q2H7NX2EY55Z5QDGMHMZOQWNFDTXL4ULPF7NSBKXKVIBRJQXZPGAC

Dependencies

  • [2] 6A5YLGWV Add an importer for the VR-Bank CSV format
  • [*] R524JUUE Implement metadata & price directives

Change contents

  • edit in common/beancount-types/src/metadata/kv.rs at line 9
    [4.4702]
    [4.4702]
    use time::Date;
  • edit in common/beancount-types/src/metadata/kv.rs at line 157
    [4.7463]
    [4.7463]
    Date(Date),
  • edit in common/beancount-types/src/metadata/kv.rs at line 185
    [4.7995]
    [2.12370]
    Self::Date(inner) => inner.fmt(f),
  • edit in common/beancount-types/src/metadata/kv.rs at line 195
    [4.8224]
    [4.8224]
    }
    }
    impl From<Date> for Value {
    fn from(value: Date) -> Self {
    Self::Date(value)