pub struct Post {Show 24 fields
pub content: Option<String>,
pub expiration_date: Option<DateTime<Utc>>,
pub publication_date: Option<DateTime<Utc>>,
pub title: String,
pub visibility: String,
pub actor: DomainObjectPerson,
pub comments: Option<Vec<PostComment>>,
pub comments_active: bool,
pub expiration_person: Option<DomainObjectPerson>,
pub expiration_pid: Option<i64>,
pub group: DomainObjectGroup,
pub group_visibility: String,
pub guid: String,
pub id: i64,
pub images: Vec<String>,
pub images_meta: Vec<PostImageMeta>,
pub instance: Option<PostInstance>,
pub is_banned: bool,
pub last_edited_date: Option<DateTime<Utc>>,
pub linkings: Option<Vec<LinkingOpenGraph>>,
pub meta: MetaDataEntityId,
pub published_date: DateTime<Utc>,
pub reactions: Option<Vec<PostReaction>>,
pub extra: Map<String, Value>,
}Fields§
§content: Option<String>§expiration_date: Option<DateTime<Utc>>§publication_date: Option<DateTime<Utc>>§title: String§visibility: StringAllowed values: group_intern, group_visible.
actor: DomainObjectPersonPerson as Domain Object
comments: Option<Vec<PostComment>>§comments_active: bool§expiration_person: Option<DomainObjectPerson>Person identified by expirationPid. Null when expirationPid is null or identifies the post author; otherwise populated with the person who last set or changed the expiration date.
expiration_pid: Option<i64>ID of the person who last set or changed the expiration date.
group: DomainObjectGroup§group_visibility: StringThe visibility of a group.
Allowed values: hidden, intern, public, restricted.
guid: String§id: i64§images: Vec<String>§images_meta: Vec<PostImageMeta>§instance: Option<PostInstance>§is_banned: bool§last_edited_date: Option<DateTime<Utc>>Last edit timestamp only when later than publicationDate; otherwise null.
linkings: Option<Vec<LinkingOpenGraph>>§meta: MetaDataEntityId§published_date: DateTime<Utc>A timestamp in Zulu time format, e.g. ‘2022-10-19T12:00:00Z’
reactions: Option<Vec<PostReaction>>§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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 StructuralPartialEq for Post
Auto Trait Implementations§
impl Freeze for Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnsafeUnpin for Post
impl UnwindSafe for Post
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