pub struct CompanyUpdate {
pub article_link: Option<Option<String>>,
pub image: Option<Option<String>>,
pub posted_on: Option<Box<Date>>,
pub text: Option<Option<String>>,
pub total_likes: Option<Option<i32>>,
}Fields§
§article_link: Option<Option<String>>The URL for which the post links out to
image: Option<Option<String>>The URL to the image to the post (if it exists)
posted_on: Option<Box<Date>>§text: Option<Option<String>>The body of the update
total_likes: Option<Option<i32>>The total likes a post has received
Implementations§
Source§impl CompanyUpdate
impl CompanyUpdate
pub fn new() -> CompanyUpdate
Trait Implementations§
Source§impl Clone for CompanyUpdate
impl Clone for CompanyUpdate
Source§fn clone(&self) -> CompanyUpdate
fn clone(&self) -> CompanyUpdate
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 CompanyUpdate
impl Debug for CompanyUpdate
Source§impl Default for CompanyUpdate
impl Default for CompanyUpdate
Source§fn default() -> CompanyUpdate
fn default() -> CompanyUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompanyUpdate
impl<'de> Deserialize<'de> for CompanyUpdate
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 CompanyUpdate
impl PartialEq for CompanyUpdate
Source§impl Serialize for CompanyUpdate
impl Serialize for CompanyUpdate
impl StructuralPartialEq for CompanyUpdate
Auto Trait Implementations§
impl Freeze for CompanyUpdate
impl RefUnwindSafe for CompanyUpdate
impl Send for CompanyUpdate
impl Sync for CompanyUpdate
impl Unpin for CompanyUpdate
impl UnwindSafe for CompanyUpdate
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