6C5UOAZN5C4AXGOYD2MN54ZS7YWWVVZBDCKCZK4Z4IVHHJWMKG7AC
U63IONGETCB4NUGTSWYUJQMZNR5O6ZZKIPPBYJPBGVLAFXSFDNOAC
use autosurgeon::{reconcile::NoKey, Hydrate, HydrateError, Reconcile, Reconciler};use chrono::{DateTime, NaiveDateTime, Utc};
use autosurgeon::{reconcile::NoKey, Hydrate, HydrateError, Reconcile, Reconciler};
use chrono::{DateTime, NaiveDateTime, Utc};
use autosurgeon::{ reconcile::NoKey, Hydrate, HydrateError, Reconcile, Reconciler,};use chrono::{ DateTime, NaiveDateTime, Utc,};
use autosurgeon::{
reconcile::NoKey,
Hydrate,
HydrateError,
Reconcile,
Reconciler,
};
use chrono::{
DateTime,
NaiveDateTime,
Utc,
pub enum Entry { Comment(Comment), Patch(Patch),
pub enum Entry {
Comment(Comment),
Patch(Patch),
pub struct Entry { pub meta: EntryMeta, pub kind: EntryKind,
pub struct Entry {
pub meta: EntryMeta,
pub kind: EntryKind,
pub struct Comment { pub author: String,
pub struct Comment {
pub author: String,
pub struct EntryMeta { pub identity: String,
pub struct EntryMeta {
pub identity: String,
pub text: String,
}impl From<&str> for EntryMeta { fn from(identity: &str) -> Self { Self { identity: identity.to_owned(), timestamp: Timestamp::now(), } }
}
impl From<&str> for EntryMeta {
fn from(identity: &str) -> Self {
Self {
identity: identity.to_owned(),
timestamp: Timestamp::now(),
pub struct Patch { pub submitter: String, pub timestamp: Timestamp, pub hash: String,
pub struct Patch {
pub submitter: String,
pub timestamp: Timestamp,
pub hash: String,
pub enum EntryKind { Comment { text: String }, Patch { hash: String },
pub enum EntryKind {
Comment { text: String },
Patch { hash: String },
use autosurgeon::{hydrate, reconcile};
use autosurgeon::{ hydrate, reconcile, };
hydrate,
reconcile,
disc2.entries.push(Entry::Comment(Comment { author: "Dylan".into(), timestamp: Timestamp::now(), text: "Yo".into(), }));
disc2.entries.push(Entry::Comment(Comment {
author: "Dylan".into(),
text: "Yo".into(),
}));
disc2.entries.push(Entry { meta: EntryMeta::from("Dylan"), kind: EntryKind::Comment { text: "Yo".into() }, });
disc2.entries.push(Entry {
meta: EntryMeta::from("Dylan"),
kind: EntryKind::Comment { text: "Yo".into() },
});
disc1.entries.push(Entry::Comment(Comment { author: "Dave".into(), timestamp: Timestamp::now(), text: "Hey".into(), }));
disc1.entries.push(Entry::Comment(Comment {
author: "Dave".into(),
text: "Hey".into(),
disc1.entries.push(Entry { meta: EntryMeta::from("dave"), kind: EntryKind::Comment { text: "hey".into() }, });
disc1.entries.push(Entry {
meta: EntryMeta::from("dave"),
kind: EntryKind::Comment { text: "hey".into() },