Struct lemmy_db_schema::source::post::PostInsertForm
source · pub struct PostInsertForm {Show 22 fields
pub name: String,
pub creator_id: PersonId,
pub community_id: CommunityId,
pub nsfw: Option<bool>,
pub url: Option<DbUrl>,
pub body: Option<String>,
pub removed: Option<bool>,
pub locked: Option<bool>,
pub updated: Option<DateTime<Utc>>,
pub published: Option<DateTime<Utc>>,
pub deleted: Option<bool>,
pub embed_title: Option<String>,
pub embed_description: Option<String>,
pub embed_video_url: Option<DbUrl>,
pub thumbnail_url: Option<DbUrl>,
pub ap_id: Option<DbUrl>,
pub local: Option<bool>,
pub language_id: Option<LanguageId>,
pub featured_community: Option<bool>,
pub featured_local: Option<bool>,
pub url_content_type: Option<String>,
pub alt_text: Option<String>,
}
Fields§
§name: String
§creator_id: PersonId
§community_id: CommunityId
§nsfw: Option<bool>
§url: Option<DbUrl>
§body: Option<String>
§removed: Option<bool>
§locked: Option<bool>
§updated: Option<DateTime<Utc>>
§published: Option<DateTime<Utc>>
§deleted: Option<bool>
§embed_title: Option<String>
§embed_description: Option<String>
§embed_video_url: Option<DbUrl>
§thumbnail_url: Option<DbUrl>
§ap_id: Option<DbUrl>
§local: Option<bool>
§language_id: Option<LanguageId>
§featured_community: Option<bool>
§featured_local: Option<bool>
§url_content_type: Option<String>
§alt_text: Option<String>
Implementations§
source§impl PostInsertForm
impl PostInsertForm
sourcepub fn builder() -> PostInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PostInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PostInsertForm
.
On the builder, call .name(...)
, .creator_id(...)
, .community_id(...)
, .nsfw(...)
(optional), .url(...)
(optional), .body(...)
(optional), .removed(...)
(optional), .locked(...)
(optional), .updated(...)
(optional), .published(...)
(optional), .deleted(...)
(optional), .embed_title(...)
(optional), .embed_description(...)
(optional), .embed_video_url(...)
(optional), .thumbnail_url(...)
(optional), .ap_id(...)
(optional), .local(...)
(optional), .language_id(...)
(optional), .featured_community(...)
(optional), .featured_local(...)
(optional), .url_content_type(...)
(optional), .alt_text(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of PostInsertForm
.
Trait Implementations§
source§impl Clone for PostInsertForm
impl Clone for PostInsertForm
source§fn clone(&self) -> PostInsertForm
fn clone(&self) -> PostInsertForm
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PostInsertForm
impl RefUnwindSafe for PostInsertForm
impl Send for PostInsertForm
impl Sync for PostInsertForm
impl Unpin for PostInsertForm
impl UnwindSafe for PostInsertForm
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