Struct dapnet_api::News
source · [−]pub struct News {
pub rubric: String,
pub text: String,
pub number: Option<i8>,
pub timestamp: Option<DateTime<Utc>>,
pub sender: Option<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: Option<DateTime<Utc>>
Time at which the news was sent
sender: Option<String>
User who submitted the news
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for News
impl<'de> Deserialize<'de> for News
sourcefn 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 RefUnwindSafe for News
impl Send for News
impl Sync for News
impl Unpin for News
impl UnwindSafe for News
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more