|
|
|
@ -17,12 +17,12 @@ pub type IDMaxString = MaxLenString<{defaults::POST_ID_MAX_LEN}>;
|
|
|
|
|
/// The timestamp type used in posts
|
|
|
|
|
pub type PostTimestamp = chrono::DateTime<defaults::Timezone>;
|
|
|
|
|
|
|
|
|
|
/// A size limited PEM formatting specifier
|
|
|
|
|
/// A size limited base64 formatting specifier
|
|
|
|
|
type PostBodyFormat = formats::BothFormat<formats::MaxLenFormat<{defaults::POST_BODY_MAX_SIZE}>, formats::Base64Format>;
|
|
|
|
|
|
|
|
|
|
/// A size limited PEM string
|
|
|
|
|
/// A size limited base64 string
|
|
|
|
|
pub type PostBodyString = hard_format::FormattedString<PostBodyFormat>;
|
|
|
|
|
/// A size limited PEM string
|
|
|
|
|
/// A size limited base64 string
|
|
|
|
|
pub type PostBodyStr = hard_format::FormattedStr<PostBodyFormat>;
|
|
|
|
|
|
|
|
|
|
/// Identifiers for a post
|
|
|
|
|