f3-rs/src/lib.rs

56 lines
1.5 KiB
Rust
Raw Permalink Normal View History

2023-10-24 20:03:59 +05:30
// Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: MIT
//! # Welcome to F3 Documentation!
//!
//! Please refer to the [main documentation](https://f3.forgefriends.org/) for a complete overview.
//! This is an incomplete Rust port of the F3 library created by the ForgeFriends project.
use serde::{Deserialize, Serialize};
2023-01-03 12:28:05 +05:30
pub mod comment;
2023-01-02 22:09:04 +05:30
pub mod identities;
2023-01-03 12:53:10 +05:30
pub mod issue;
2023-01-02 22:21:26 +05:30
pub mod label;
pub mod milestone;
2023-01-03 13:19:59 +05:30
pub mod project;
2023-01-03 13:34:35 +05:30
pub mod pullrequest;
2023-01-02 22:21:26 +05:30
pub mod reaction;
2023-01-03 13:47:11 +05:30
pub mod release;
2023-01-02 22:21:26 +05:30
pub mod repository;
2023-01-03 14:01:51 +05:30
pub mod review;
2023-01-02 22:09:04 +05:30
pub mod topic;
2023-01-02 22:21:26 +05:30
pub mod user;
2023-01-03 12:28:05 +05:30
pub use comment::Comment;
pub use identities::Identities;
2023-01-03 12:53:10 +05:30
pub use issue::Issue;
pub use label::Label;
pub use milestone::Milestone;
2023-01-03 13:19:59 +05:30
pub use project::Project;
2023-01-03 13:34:35 +05:30
pub use pullrequest::PullRequest;
pub use reaction::Reaction;
2023-01-03 14:01:51 +05:30
pub use release::{Release, ReleaseAsset};
pub use repository::Repository;
2023-01-03 14:01:51 +05:30
pub use review::{Review, ReviewComment, ReviewState};
pub use topic::Topic;
pub use user::User;
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
/// states of issue, milestone, etc with only "open" and "closed" states and "closed" states and
/// "closed" states and "closed" states
pub enum OpenCloseState {
/// A 'closed' issue will not see any activity in the future
Closed,
/// An 'open' issue will see activity in the future
Open,
}
impl Default for OpenCloseState {
fn default() -> Self {
Self::Open
}
}