Add comment about simpler client implementation.

add_expires_comment
Dessalines 2024-01-25 10:00:48 -05:00
parent 1ea9f034bc
commit 87c04ddf00
2 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,8 @@ pub struct BanFromCommunity {
pub remove_data: Option<bool>, pub remove_data: Option<bool>,
pub reason: Option<String>, pub reason: Option<String>,
/// A time that the ban will expire, in unix epoch seconds. /// A time that the ban will expire, in unix epoch seconds.
///
/// A simple i64 unix timestamp is used for a simpler API client implementation.
pub expires: Option<i64>, pub expires: Option<i64>,
} }

View File

@ -215,6 +215,8 @@ pub struct BanPerson {
pub remove_data: Option<bool>, pub remove_data: Option<bool>,
pub reason: Option<String>, pub reason: Option<String>,
/// A time that the ban will expire, in unix epoch seconds. /// A time that the ban will expire, in unix epoch seconds.
///
/// A simple i64 unix timestamp is used for a simpler API client implementation.
pub expires: Option<i64>, pub expires: Option<i64>,
} }