libocc 0.5.0

A library for occasionally connected computing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Person {
    pub uuid: Uuid,
    pub first_name: String,
    pub last_name: String,
}

// Implemented manually to distinguish between people based on their UUIDs
impl PartialEq for Person {
    fn eq(&self, other: &Self) -> bool {
        self.uuid == other.uuid
    }
}