#[non_exhaustive]pub struct PostContent {
pub title: String,
pub author: String,
pub time: DateTime<Utc>,
pub text: String,
pub picture: Option<String>,
}Expand description
The content of a post or idea, as the host resolves a link to it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: StringThe title of an idea; empty for a post, whose card then leads with the author.
Who published it.
time: DateTime<Utc>When it was published.
text: StringThe text.
picture: Option<String>The address of its picture, such as an idea’s chart image, loaded through the host’s egui
image loaders as an image drawing’s address is; None without one. The chart loads it
through those loaders only, so answer with addresses they should fetch.
Implementations§
Trait Implementations§
Source§impl Clone for PostContent
impl Clone for PostContent
Source§fn clone(&self) -> PostContent
fn clone(&self) -> PostContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostContent
impl Debug for PostContent
Source§impl<'de> Deserialize<'de> for PostContent
impl<'de> Deserialize<'de> for PostContent
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
impl Eq for PostContent
Source§impl PartialEq for PostContent
impl PartialEq for PostContent
Source§impl Serialize for PostContent
impl Serialize for PostContent
impl StructuralPartialEq for PostContent
Auto Trait Implementations§
impl Freeze for PostContent
impl RefUnwindSafe for PostContent
impl Send for PostContent
impl Sync for PostContent
impl Unpin for PostContent
impl UnsafeUnpin for PostContent
impl UnwindSafe for PostContent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more