pub struct NewsArticleBody {
pub article_type: ArticleType,
pub article_text: String,
}Expand description
News article body containing the full article content.
Fields§
§article_type: ArticleTypeThe type of news article (ArticleType::Text - plain text or html, ArticleType::Binary - binary data / pdf)
article_text: StringThe body of article (if ArticleType::Binary, the binary data is encoded using the Base64 scheme)
Trait Implementations§
Source§impl Clone for NewsArticleBody
impl Clone for NewsArticleBody
Source§fn clone(&self) -> NewsArticleBody
fn clone(&self) -> NewsArticleBody
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 NewsArticleBody
impl Debug for NewsArticleBody
Source§impl Default for NewsArticleBody
impl Default for NewsArticleBody
Source§fn default() -> NewsArticleBody
fn default() -> NewsArticleBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NewsArticleBody
impl<'de> Deserialize<'de> for NewsArticleBody
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 NewsArticleBody
impl PartialEq for NewsArticleBody
Source§impl Serialize for NewsArticleBody
impl Serialize for NewsArticleBody
impl StructuralPartialEq for NewsArticleBody
Auto Trait Implementations§
impl Freeze for NewsArticleBody
impl RefUnwindSafe for NewsArticleBody
impl Send for NewsArticleBody
impl Sync for NewsArticleBody
impl Unpin for NewsArticleBody
impl UnwindSafe for NewsArticleBody
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