1#![doc = include_str!("../README.md")]
2pub mod client;
3pub mod error;
4
5use std::fmt::Display;
6
7pub use client::{RestApiClient, RestApiRateLimitHeaders};
8pub use error::RestClientError;
9mod thread_comments;
10pub use thread_comments::{CommentPolicy, ThreadCommentOptions};
11
12#[derive(Debug, Default, PartialEq, Eq, Clone, Copy)]
16pub enum CommentKind {
17 #[default]
19 Concerns,
20
21 Lgtm,
23}
24
25#[derive(Debug, Clone)]
33pub struct OutputVariable {
34 pub name: String,
36
37 pub value: String,
39}
40
41impl OutputVariable {
42 pub(crate) fn validate(&self) -> bool {
43 !self.value.contains("\n")
44 }
45}
46
47impl Display for OutputVariable {
48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49 write!(f, "{} = {}", self.name, self.value)
50 }
51}