ik_mini/
types.rs

1//! Defines the public type aliases for the data structures returned by API endpoints.
2//!
3//! These aliases provide a clear and consistent naming convention (e.g., `UserResponse`)
4//! for the types that consumers of this library will receive, distinguishing them from
5//! the internal `model` structs. This makes the library's public API more explicit.
6
7use crate::model;
8
9/// Represents response for a full story chapter object. Alias for [`model::StoryResult`]
10pub(crate) type StoryResult = model::StoryResult;
11
12/// Represents the response data for a full story object. Alias for [`model::Story`].
13pub type StoryResponse = model::Story;
14
15/// Represents the response for a full story chapter object. Alias for [`model::Chapter`].
16pub type ChapterResponse = model::Chapter;
17
18/// Represents the multiple chapter response (Vec of StoryResponse)
19pub type ChaptersResponse = Vec<ChapterResponse>;
20
21/// Represents the auth return type
22pub type LoginResponse = model::LoginResponse;