#[non_exhaustive]pub struct AnnouncementDetail {
pub title: String,
pub ann_type: String,
pub url: String,
pub p_time: NumberString,
pub business_p_time: NumberString,
}Expand description
A single announcement entry within AnnouncementsPage::details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: StringAnnouncement title.
ann_type: StringAnnouncement type identifier.
url: StringAnnouncement URL.
p_time: NumberStringActual publish time (Unix milliseconds). May be delayed ~5 minutes.
business_p_time: NumberStringDisplay time shown on the announcement page (Unix milliseconds).
Trait Implementations§
Source§impl Clone for AnnouncementDetail
impl Clone for AnnouncementDetail
Source§fn clone(&self) -> AnnouncementDetail
fn clone(&self) -> AnnouncementDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnouncementDetail
impl Debug for AnnouncementDetail
Source§impl Default for AnnouncementDetail
impl Default for AnnouncementDetail
Source§fn default() -> AnnouncementDetail
fn default() -> AnnouncementDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnouncementDetail
impl<'de> Deserialize<'de> for AnnouncementDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnnouncementDetail
impl RefUnwindSafe for AnnouncementDetail
impl Send for AnnouncementDetail
impl Sync for AnnouncementDetail
impl Unpin for AnnouncementDetail
impl UnsafeUnpin for AnnouncementDetail
impl UnwindSafe for AnnouncementDetail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more