pub mod api_endpoints;
pub mod api_utils;
pub use api_endpoints::TaskApiV2;
pub mod constants {
pub const DEFAULT_PAGE_SIZE: i32 = 20;
pub const MAX_PAGE_SIZE: i32 = 100;
}
pub mod types {
pub type TaskGuid = String;
pub type TasklistGuid = String;
pub type SectionGuid = String;
pub type CustomFieldGuid = String;
pub type CommentGuid = String;
pub type AttachmentGuid = String;
}
#[cfg(test)]
#[allow(unused_imports)]
mod tests {
use super::constants;
use super::types;
#[test]
fn test_default_page_size() {
assert_eq!(constants::DEFAULT_PAGE_SIZE, 20);
}
#[test]
fn test_max_page_size() {
assert_eq!(constants::MAX_PAGE_SIZE, 100);
}
#[test]
fn test_task_guid_type() {
let guid: types::TaskGuid = "test_guid".to_string();
assert_eq!(guid, "test_guid");
}
#[test]
fn test_tasklist_guid_type() {
let guid: types::TasklistGuid = "test_tasklist".to_string();
assert_eq!(guid, "test_tasklist");
}
#[test]
fn test_section_guid_type() {
let guid: types::SectionGuid = "test_section".to_string();
assert_eq!(guid, "test_section");
}
#[test]
fn test_custom_field_guid_type() {
let guid: types::CustomFieldGuid = "test_field".to_string();
assert_eq!(guid, "test_field");
}
#[test]
fn test_comment_guid_type() {
let guid: types::CommentGuid = "test_comment".to_string();
assert_eq!(guid, "test_comment");
}
#[test]
fn test_attachment_guid_type() {
let guid: types::AttachmentGuid = "test_attachment".to_string();
assert_eq!(guid, "test_attachment");
}
}