Request

Struct Request 

Source
pub struct Request {
Show 67 fields pub disable_registration: Option<bool>, pub disable_local_timeline: Option<bool>, pub disable_global_timeline: Option<bool>, pub use_star_for_reaction_fallback: Option<bool>, pub pinned_users: Option<Vec<String>>, pub pinned_pages: Option<Vec<String>>, pub pinned_clip_id: Option<Option<Id<Clip>>>, pub hidden_tags: Option<Vec<String>>, pub blocked_hosts: Option<Vec<String>>, pub mascot_image_url: Option<Option<String>>, pub bannar_url: Option<Option<String>>, pub icon_url: Option<Option<String>>, pub background_image_url: Option<Option<String>>, pub logo_image_url: Option<Option<String>>, pub name: Option<Option<String>>, pub description: Option<Option<String>>, pub max_note_text_length: Option<u64>, pub local_drive_capacity_mb: Option<u64>, pub remote_drive_capacity_mb: Option<u64>, pub cache_remote_files: Option<bool>, pub proxy_remote_files: Option<bool>, pub enable_hcaptcha: Option<bool>, pub hcaptcha_site_key: Option<Option<String>>, pub hcaptcha_secret_key: Option<Option<String>>, pub enable_recaptcha: Option<bool>, pub recaptcha_site_key: Option<Option<String>>, pub recaptcha_secret_key: Option<Option<String>>, pub proxy_account_id: Option<Option<Id<User>>>, pub maintainer_name: Option<Option<String>>, pub maintainer_email: Option<Option<String>>, pub langs: Option<Vec<String>>, pub summaly_proxy: Option<Option<Url>>, pub enable_twitter_integration: Option<bool>, pub twitter_consumer_key: Option<Option<String>>, pub twitter_consumer_secret: Option<Option<String>>, pub enable_github_integration: Option<bool>, pub github_client_id: Option<Option<String>>, pub github_client_secret: Option<Option<String>>, pub enable_discord_integration: Option<bool>, pub discord_client_id: Option<Option<String>>, pub discord_client_secret: Option<Option<String>>, pub enable_email: Option<bool>, pub email: Option<Option<String>>, pub smtp_secure: Option<bool>, pub smtp_host: Option<Option<String>>, pub smtp_port: Option<Option<u16>>, pub smtp_user: Option<Option<String>>, pub smtp_pass: Option<Option<String>>, pub error_image_url: Option<Option<String>>, pub enable_service_worker: Option<bool>, pub sw_public_key: Option<Option<String>>, pub sw_private_key: Option<Option<String>>, pub tos_url: Option<Option<String>>, pub repository_url: Option<Url>, pub feedback_url: Option<Option<String>>, pub use_object_storage: Option<bool>, pub object_storage_base_url: Option<Option<Url>>, pub object_storage_bucket: Option<Option<String>>, pub object_storage_prefix: Option<Option<String>>, pub object_storage_endpoint: Option<Option<String>>, pub object_storage_region: Option<Option<String>>, pub object_storage_port: Option<Option<u16>>, pub object_storage_access_key: Option<Option<String>>, pub object_storage_secret_key: Option<Option<String>>, pub object_storage_use_ssl: Option<bool>, pub object_storage_use_proxy: Option<bool>, pub object_storage_set_public_read: Option<bool>,
}

Fields§

§disable_registration: Option<bool>§disable_local_timeline: Option<bool>§disable_global_timeline: Option<bool>§use_star_for_reaction_fallback: Option<bool>§pinned_users: Option<Vec<String>>§pinned_pages: Option<Vec<String>>
Available on crate feature 12-58-0 only.
§pinned_clip_id: Option<Option<Id<Clip>>>
Available on crate feature 12-62-0 only.
§hidden_tags: Option<Vec<String>>§blocked_hosts: Option<Vec<String>>§mascot_image_url: Option<Option<String>>§bannar_url: Option<Option<String>>§icon_url: Option<Option<String>>§background_image_url: Option<Option<String>>
Available on crate feature 12-60-0 only.
§logo_image_url: Option<Option<String>>
Available on crate feature 12-60-0 only.
§name: Option<Option<String>>§description: Option<Option<String>>§max_note_text_length: Option<u64>§local_drive_capacity_mb: Option<u64>§remote_drive_capacity_mb: Option<u64>§cache_remote_files: Option<bool>§proxy_remote_files: Option<bool>§enable_hcaptcha: Option<bool>
Available on crate feature 12-37-0 only.
§hcaptcha_site_key: Option<Option<String>>
Available on crate feature 12-37-0 only.
§hcaptcha_secret_key: Option<Option<String>>
Available on crate feature 12-37-0 only.
§enable_recaptcha: Option<bool>§recaptcha_site_key: Option<Option<String>>§recaptcha_secret_key: Option<Option<String>>§proxy_account_id: Option<Option<Id<User>>>§maintainer_name: Option<Option<String>>§maintainer_email: Option<Option<String>>§langs: Option<Vec<String>>§summaly_proxy: Option<Option<Url>>§enable_twitter_integration: Option<bool>§twitter_consumer_key: Option<Option<String>>§twitter_consumer_secret: Option<Option<String>>§enable_github_integration: Option<bool>§github_client_id: Option<Option<String>>§github_client_secret: Option<Option<String>>§enable_discord_integration: Option<bool>§discord_client_id: Option<Option<String>>§discord_client_secret: Option<Option<String>>§enable_email: Option<bool>§email: Option<Option<String>>§smtp_secure: Option<bool>§smtp_host: Option<Option<String>>§smtp_port: Option<Option<u16>>§smtp_user: Option<Option<String>>§smtp_pass: Option<Option<String>>§error_image_url: Option<Option<String>>§enable_service_worker: Option<bool>§sw_public_key: Option<Option<String>>§sw_private_key: Option<Option<String>>§tos_url: Option<Option<String>>§repository_url: Option<Url>§feedback_url: Option<Option<String>>§use_object_storage: Option<bool>§object_storage_base_url: Option<Option<Url>>§object_storage_bucket: Option<Option<String>>§object_storage_prefix: Option<Option<String>>§object_storage_endpoint: Option<Option<String>>§object_storage_region: Option<Option<String>>§object_storage_port: Option<Option<u16>>§object_storage_access_key: Option<Option<String>>§object_storage_secret_key: Option<Option<String>>§object_storage_use_ssl: Option<bool>§object_storage_use_proxy: Option<bool>
Available on crate feature 12-31-0 only.
§object_storage_set_public_read: Option<bool>
Available on crate feature 12-47-0 only.

Implementations§

Source§

impl Request

Source

pub fn builder() -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

Create a builder for building Request. On the builder, call .disable_registration(...)(optional), .disable_local_timeline(...)(optional), .disable_global_timeline(...)(optional), .use_star_for_reaction_fallback(...)(optional), .pinned_users(...)(optional), .pinned_pages(...)(optional), .pinned_clip_id(...)(optional), .hidden_tags(...)(optional), .blocked_hosts(...)(optional), .mascot_image_url(...)(optional), .bannar_url(...)(optional), .icon_url(...)(optional), .background_image_url(...)(optional), .logo_image_url(...)(optional), .name(...)(optional), .description(...)(optional), .max_note_text_length(...)(optional), .local_drive_capacity_mb(...)(optional), .remote_drive_capacity_mb(...)(optional), .cache_remote_files(...)(optional), .proxy_remote_files(...)(optional), .enable_hcaptcha(...)(optional), .hcaptcha_site_key(...)(optional), .hcaptcha_secret_key(...)(optional), .enable_recaptcha(...)(optional), .recaptcha_site_key(...)(optional), .recaptcha_secret_key(...)(optional), .proxy_account_id(...)(optional), .maintainer_name(...)(optional), .maintainer_email(...)(optional), .langs(...)(optional), .summaly_proxy(...)(optional), .enable_twitter_integration(...)(optional), .twitter_consumer_key(...)(optional), .twitter_consumer_secret(...)(optional), .enable_github_integration(...)(optional), .github_client_id(...)(optional), .github_client_secret(...)(optional), .enable_discord_integration(...)(optional), .discord_client_id(...)(optional), .discord_client_secret(...)(optional), .enable_email(...)(optional), .email(...)(optional), .smtp_secure(...)(optional), .smtp_host(...)(optional), .smtp_port(...)(optional), .smtp_user(...)(optional), .smtp_pass(...)(optional), .error_image_url(...)(optional), .enable_service_worker(...)(optional), .sw_public_key(...)(optional), .sw_private_key(...)(optional), .tos_url(...)(optional), .repository_url(...)(optional), .feedback_url(...)(optional), .use_object_storage(...)(optional), .object_storage_base_url(...)(optional), .object_storage_bucket(...)(optional), .object_storage_prefix(...)(optional), .object_storage_endpoint(...)(optional), .object_storage_region(...)(optional), .object_storage_port(...)(optional), .object_storage_access_key(...)(optional), .object_storage_secret_key(...)(optional), .object_storage_use_ssl(...)(optional), .object_storage_use_proxy(...)(optional), .object_storage_set_public_read(...)(optional) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of Request.

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Request

Source§

fn default() -> Request

Returns the “default value” for a type. Read more
Source§

impl Request for Request

Source§

const ENDPOINT: &'static str = "admin/update-meta"

The name of the corresponding endpoint.
Source§

type Response = ()

Response type of this request.
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,