pub struct SiteInsertForm {Show 13 fields
pub name: String,
pub sidebar: Option<String>,
pub updated: Option<DateTime<Utc>>,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
pub description: Option<String>,
pub actor_id: Option<DbUrl>,
pub last_refreshed_at: Option<DateTime<Utc>>,
pub inbox_url: Option<DbUrl>,
pub private_key: Option<String>,
pub public_key: Option<String>,
pub instance_id: InstanceId,
pub content_warning: Option<String>,
}
Fields§
§name: String
§updated: Option<DateTime<Utc>>
§icon: Option<DbUrl>
§description: Option<String>
§actor_id: Option<DbUrl>
§last_refreshed_at: Option<DateTime<Utc>>
§inbox_url: Option<DbUrl>
§private_key: Option<String>
§public_key: Option<String>
§instance_id: InstanceId
§content_warning: Option<String>
Implementations§
Source§impl SiteInsertForm
impl SiteInsertForm
Sourcepub fn builder() -> SiteInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SiteInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SiteInsertForm
.
On the builder, call .name(...)
, .sidebar(...)
(optional), .updated(...)
(optional), .icon(...)
(optional), .banner(...)
(optional), .description(...)
(optional), .actor_id(...)
(optional), .last_refreshed_at(...)
(optional), .inbox_url(...)
(optional), .private_key(...)
(optional), .public_key(...)
(optional), .instance_id(...)
, .content_warning(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SiteInsertForm
.
Trait Implementations§
Source§impl Clone for SiteInsertForm
impl Clone for SiteInsertForm
Source§fn clone(&self) -> SiteInsertForm
fn clone(&self) -> SiteInsertForm
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 moreAuto Trait Implementations§
impl Freeze for SiteInsertForm
impl RefUnwindSafe for SiteInsertForm
impl Send for SiteInsertForm
impl Sync for SiteInsertForm
impl Unpin for SiteInsertForm
impl UnwindSafe for SiteInsertForm
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