pib-service-inventory 0.13.1

Inventory interface library to be used in pib-service
Documentation
// SPDX-FileCopyrightText: Politik im Blick developers
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
//
// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

use oparl_types::{Date, DateTime, Name, OrganizationClassification, Url};
use uuid::Uuid;

use crate::Membership;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Organization {
    pub id: Uuid,
    pub created: DateTime,
    pub modified: DateTime,

    pub body: Uuid,
    pub name: Name,
    pub short_name: Option<Name>,
    pub classification: Option<OrganizationClassification>,
    pub start_date: Option<Date>,
    pub end_date: Option<Date>,
    pub website: Option<Url>,

    pub membership: Vec<Membership>,
}