new-idea
Avril 4 years ago
parent 878a2435c5
commit cda9470f86
Signed by: flanchan
GPG Key ID: 284488987C31F630

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

Loading…
Cancel
Save