pub struct StreamGetNewsData {
pub body: String,
pub key: String,
pub time: u64,
pub title: String,
}
Fields§
§body: String
Body content of the news article
key: String
Unique identifier for the news article
time: u64
Time of the news article
title: String
Title of the news article
Implementations§
Source§impl StreamGetNewsData
impl StreamGetNewsData
Sourcepub fn with_title(self, value: impl Into<String>) -> Self
pub fn with_title(self, value: impl Into<String>) -> Self
Sets the title
field of this struct.
Trait Implementations§
Source§impl Clone for StreamGetNewsData
impl Clone for StreamGetNewsData
Source§fn clone(&self) -> StreamGetNewsData
fn clone(&self) -> StreamGetNewsData
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamGetNewsData
impl Debug for StreamGetNewsData
Source§impl Default for StreamGetNewsData
impl Default for StreamGetNewsData
Source§fn default() -> StreamGetNewsData
fn default() -> StreamGetNewsData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetNewsData
impl<'de> Deserialize<'de> for StreamGetNewsData
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
Source§impl PartialEq for StreamGetNewsData
impl PartialEq for StreamGetNewsData
Source§impl Serialize for StreamGetNewsData
impl Serialize for StreamGetNewsData
impl StructuralPartialEq for StreamGetNewsData
Auto Trait Implementations§
impl Freeze for StreamGetNewsData
impl RefUnwindSafe for StreamGetNewsData
impl Send for StreamGetNewsData
impl Sync for StreamGetNewsData
impl Unpin for StreamGetNewsData
impl UnwindSafe for StreamGetNewsData
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