pub struct News {
pub rubric: String,
pub text: String,
pub number: Option<i8>,
pub timestamp: DateTime<Utc>,
pub sender: String,
}
Fields§
§rubric: String
Name of the rubric to send to
text: String
Message text of the news item
number: Option<i8>
News position (1-10) for Skyper pagers
timestamp: DateTime<Utc>
Time at which the news was sent
sender: String
User who submitted the news
Trait Implementations§
Source§impl<'de> Deserialize<'de> for News
impl<'de> Deserialize<'de> for News
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 News
impl RefUnwindSafe for News
impl Send for News
impl Sync for News
impl Unpin for News
impl UnwindSafe for News
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