f3_rs/
lib.rs

1// Copyright (C) 2023  Aravinth Manivannan <realaravinth@batsense.net>
2// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
3//
4// SPDX-License-Identifier: MIT
5
6//! # Welcome to F3 Documentation!
7//!
8//! Please refer to the [main documentation](https://f3.forgefriends.org/) for a complete overview.
9//! This is an incomplete Rust port of the F3 library created by the ForgeFriends project.
10use serde::{Deserialize, Serialize};
11
12pub mod comment;
13pub mod identities;
14pub mod issue;
15pub mod label;
16pub mod milestone;
17pub mod project;
18pub mod pullrequest;
19pub mod reaction;
20pub mod release;
21pub mod repository;
22pub mod review;
23pub mod topic;
24pub mod user;
25
26pub use comment::Comment;
27pub use identities::Identities;
28pub use issue::Issue;
29pub use label::Label;
30pub use milestone::Milestone;
31pub use project::Project;
32pub use pullrequest::PullRequest;
33pub use reaction::Reaction;
34pub use release::{Release, ReleaseAsset};
35pub use repository::Repository;
36pub use review::{Review, ReviewComment, ReviewState};
37pub use topic::Topic;
38pub use user::User;
39
40#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
41#[serde(rename_all = "lowercase")]
42/// states of issue, milestone, etc with only "open" and "closed" states and "closed" states and
43/// "closed" states and "closed" states
44pub enum OpenCloseState {
45    /// A 'closed' issue will not see any activity in the future
46    Closed,
47    /// An 'open' issue will see activity in the future
48    Open,
49}
50
51impl Default for OpenCloseState {
52    fn default() -> Self {
53        Self::Open
54    }
55}