MetaUpdateBuilder

Struct MetaUpdateBuilder 

Source
pub struct MetaUpdateBuilder<C> { /* private fields */ }
Expand description

Builder for the update_meta method.

Implementations§

Source§

impl<C> MetaUpdateBuilder<C>

Source

pub fn new(client: C) -> Self

Creates a builder with the client.

Source

pub fn as_request(&self) -> &Request

Gets the request object for reuse.

Source

pub fn disable_registration(&mut self, disable_registration: bool) -> &mut Self

Sets whether the instance has registration enabled.

Source

pub fn disable_local_timeline( &mut self, disable_local_timeline: bool, ) -> &mut Self

Sets whether the instance has local timeline enabled.

Source

pub fn disable_global_timeline( &mut self, disable_global_timeline: bool, ) -> &mut Self

Sets whether the instance has global timeline enabled.

Source

pub fn use_star_for_reaction_fallback( &mut self, use_star_for_reaction_fallback: bool, ) -> &mut Self

Sets whether the instance uses ★ as fallback if the reaction emoji is unknown.

Source

pub fn pinned_users( &mut self, pinned_users: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self

Sets the pinned users of the instance.

Source

pub fn hidden_tags( &mut self, hidden_tags: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self

Sets the hashtags that the instance will ignore for statistics, etc.

Source

pub fn blocked_hosts( &mut self, blocked_hosts: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self

Sets the hosts to be blocked by the instance.

Source

pub fn pinned_pages( &mut self, pinned_pages: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self

Available on crate feature 12-58-0 only.

Sets the pinned pages of the instance.

Source

pub fn set_pinned_clip( &mut self, pinned_clip: impl EntityRef<Clip>, ) -> &mut Self

Available on crate feature 12-62-0 only.

Sets the pinned clip.

Source

pub fn delete_pinned_clip(&mut self) -> &mut Self

Available on crate feature 12-62-0 only.

Deletes the pinned clip.

Source

pub fn set_mascot_image_url( &mut self, mascot_image_url: impl Into<String>, ) -> &mut Self

Sets the URL of the mascot image for the instance.

Source

pub fn delete_mascot_image_url(&mut self) -> &mut Self

Deletes the URL of the mascot image for the instance.

Source

pub fn set_bannar_url(&mut self, bannar_url: impl Into<String>) -> &mut Self

Sets the URL of the banner image for the instance.

Source

pub fn delete_bannar_url(&mut self) -> &mut Self

Deletes the URL of the banner image for the instance.

Source

pub fn set_error_image_url( &mut self, error_image_url: impl Into<String>, ) -> &mut Self

Sets the URL of the error image for the instance.

Source

pub fn delete_error_image_url(&mut self) -> &mut Self

Deletes the URL of the error image for the instance.

Source

pub fn set_icon_url(&mut self, icon_url: impl Into<String>) -> &mut Self

Sets the URL of the icon for the instance.

Source

pub fn delete_icon_url(&mut self) -> &mut Self

Deletes the URL of the icon for the instance.

Source

pub fn set_name(&mut self, name: impl Into<String>) -> &mut Self

Sets the name of the instance.

Source

pub fn delete_name(&mut self) -> &mut Self

Deletes the name of the instance.

Source

pub fn set_description(&mut self, description: impl Into<String>) -> &mut Self

Sets the description of the instance.

Source

pub fn delete_description(&mut self) -> &mut Self

Deletes the description of the instance.

Source

pub fn set_background_image_url( &mut self, background_image_url: impl Into<String>, ) -> &mut Self

Available on crate feature 12-60-0 only.

Sets the URL of the background image for the instance.

Source

pub fn delete_background_image_url(&mut self) -> &mut Self

Available on crate feature 12-60-0 only.

Deletes the URL of the background image for the instance.

Source

pub fn set_logo_image_url( &mut self, logo_image_url: impl Into<String>, ) -> &mut Self

Available on crate feature 12-60-0 only.

Sets the URL of the logo image for the instance.

Source

pub fn delete_logo_image_url(&mut self) -> &mut Self

Available on crate feature 12-60-0 only.

Deletes the URL of the logo image for the instance.

Source

pub fn max_note_text_length(&mut self, max_note_text_length: u64) -> &mut Self

Sets the maximum number of characters for posts in the instance.

Source

pub fn local_drive_capacity(&mut self, mb: u64) -> &mut Self

Sets the drive capacity per local user in megabytes.

Source

pub fn remote_drive_capacity(&mut self, mb: u64) -> &mut Self

Sets the drive capacity per remote user in megabytes.

Source

pub fn cache_remote_files(&mut self, cache_remote_files: bool) -> &mut Self

Sets whether or not the instance would cache remote files.

Source

pub fn proxy_remote_files(&mut self, proxy_remote_files: bool) -> &mut Self

Sets whether or not the instance would proxy remote files that are not available locally.

Source

pub fn enable_hcaptcha(&mut self, enable_hcaptcha: bool) -> &mut Self

Available on crate feature 12-37-0 only.

Sets whether or not the instance enables hCaptcha.

Source

pub fn enable_recaptcha(&mut self, enable_recaptcha: bool) -> &mut Self

Sets whether or not the instance enables reCAPTCHA.

Source

pub fn set_hcaptcha_site_key( &mut self, hcaptcha_site_key: impl Into<String>, ) -> &mut Self

Available on crate feature 12-37-0 only.

Sets the hCaptcha site key.

Source

pub fn delete_hcaptcha_site_key(&mut self) -> &mut Self

Available on crate feature 12-37-0 only.

Deletes the hCaptcha site key.

Source

pub fn set_hcaptcha_secret_key( &mut self, hcaptcha_secret_key: impl Into<String>, ) -> &mut Self

Available on crate feature 12-37-0 only.

Sets the hCaptcha secret key.

Source

pub fn delete_hcaptcha_secret_key(&mut self) -> &mut Self

Available on crate feature 12-37-0 only.

Deletes the hCaptcha secret key.

Source

pub fn set_recaptcha_site_key( &mut self, recaptcha_site_key: impl Into<String>, ) -> &mut Self

Sets the reCAPTCHA site key.

Source

pub fn delete_recaptcha_site_key(&mut self) -> &mut Self

Deletes the reCAPTCHA site key.

Source

pub fn set_recaptcha_secret_key( &mut self, recaptcha_secret_key: impl Into<String>, ) -> &mut Self

Sets the reCAPTCHA secret key.

Source

pub fn delete_recaptcha_secret_key(&mut self) -> &mut Self

Deletes the reCAPTCHA secret key.

Source

pub fn set_proxy_account( &mut self, proxy_account: impl EntityRef<User>, ) -> &mut Self

Sets the proxy account for the instance.

Source

pub fn delete_proxy_account(&mut self) -> &mut Self

Deletes the proxy account for the instance.

Source

pub fn set_maintainer_name( &mut self, maintainer_name: impl Into<String>, ) -> &mut Self

Sets the name of the instance maintainer.

Source

pub fn delete_maintainer_name(&mut self) -> &mut Self

Deletes the name of the instance maintainer.

Source

pub fn set_maintainer_email( &mut self, maintainer_email: impl Into<String>, ) -> &mut Self

Sets the email of the instance maintainer.

Source

pub fn delete_maintainer_email(&mut self) -> &mut Self

Deletes the email of the instance maintainer.

Source

pub fn languages( &mut self, languages: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self

Sets the target language of the instance.

Source

pub fn set_summaly_proxy(&mut self, summaly_proxy: Url) -> &mut Self

Sets the summaly proxy URL.

Source

pub fn delete_summaly_proxy(&mut self) -> &mut Self

Deletes the summaly proxy URL.

Source

pub fn enable_twitter_integration( &mut self, enable_twitter_integration: bool, ) -> &mut Self

Sets whether or not to enable the Twitter integration.

Source

pub fn set_twitter_consumer_key( &mut self, twitter_consumer_key: impl Into<String>, ) -> &mut Self

Sets the Twitter consumer key.

Source

pub fn delete_twitter_consumer_key(&mut self) -> &mut Self

Deletes the Twitter consumer key.

Source

pub fn set_twitter_consumer_secret( &mut self, twitter_consumer_secret: impl Into<String>, ) -> &mut Self

Sets the Twitter consumer secret.

Source

pub fn delete_twitter_consumer_secret(&mut self) -> &mut Self

Deletes the Twitter consumer secret.

Source

pub fn enable_github_integration( &mut self, enable_github_integration: bool, ) -> &mut Self

Sets whether or not to enable the GitHub integration.

Source

pub fn set_github_client_id( &mut self, github_client_id: impl Into<String>, ) -> &mut Self

Sets the GitHub client ID.

Source

pub fn delete_github_client_id(&mut self) -> &mut Self

Deletes the GitHub client ID.

Source

pub fn set_github_client_secret( &mut self, github_client_secret: impl Into<String>, ) -> &mut Self

Sets the GitHub client secret.

Source

pub fn delete_github_client_secret(&mut self) -> &mut Self

Deletes the GitHub client secret.

Source

pub fn enable_discord_integration( &mut self, enable_discord_integration: bool, ) -> &mut Self

Sets whether or not to enable the Discord integration.

Source

pub fn set_discord_client_id( &mut self, discord_client_id: impl Into<String>, ) -> &mut Self

Sets the Discord client ID.

Source

pub fn delete_discord_client_id(&mut self) -> &mut Self

Deletes the Discord client ID.

Source

pub fn set_discord_client_secret( &mut self, discord_client_secret: impl Into<String>, ) -> &mut Self

Sets the Discord client secret.

Source

pub fn delete_discord_client_secret(&mut self) -> &mut Self

Deletes the Discord client secret.

Source

pub fn enable_email(&mut self, enable_email: bool) -> &mut Self

Sets whether or not to enable email delivery.

Source

pub fn smtp_secure(&mut self, smtp_secure: bool) -> &mut Self

Sets whether or not the SMTP server uses SSL.

Source

pub fn set_email_address( &mut self, email_address: impl Into<String>, ) -> &mut Self

Sets the email address to be used for email delivery.

Source

pub fn delete_email_address(&mut self) -> &mut Self

Deletes the email address to be used for email delivery.

Source

pub fn set_smtp_host(&mut self, smtp_host: impl Into<String>) -> &mut Self

Sets the host of the SMTP server.

Source

pub fn delete_smtp_host(&mut self) -> &mut Self

Deletes the host of the SMTP server.

Source

pub fn set_smtp_user(&mut self, smtp_user: impl Into<String>) -> &mut Self

Sets the username of the SMTP server.

Source

pub fn delete_smtp_user(&mut self) -> &mut Self

Deletes the username of the SMTP server.

Source

pub fn set_smtp_pass(&mut self, smtp_pass: impl Into<String>) -> &mut Self

Sets the password of the SMTP server.

Source

pub fn delete_smtp_pass(&mut self) -> &mut Self

Deletes the password of the SMTP server.

Source

pub fn set_smtp_port(&mut self, smtp_port: u16) -> &mut Self

Sets the port number of the SMTP server.

Source

pub fn delete_smtp_port(&mut self) -> &mut Self

Deletes the port number of the SMTP server.

Source

pub fn enable_service_worker( &mut self, enable_service_worker: bool, ) -> &mut Self

Sets whether or not to enable the service worker.

Source

pub fn set_service_worker_public_key( &mut self, service_worker_public_key: impl Into<String>, ) -> &mut Self

Sets the public key for the service worker’s VAPID key pair.

Source

pub fn delete_service_worker_public_key(&mut self) -> &mut Self

Deletes the public key for the service worker’s VAPID key pair.

Source

pub fn set_service_worker_private_key( &mut self, service_worker_private_key: impl Into<String>, ) -> &mut Self

Sets the private key for the service worker’s VAPID key pair.

Source

pub fn delete_service_worker_private_key(&mut self) -> &mut Self

Deletes the private key for the service worker’s VAPID key pair.

Source

pub fn set_tos_url(&mut self, tos_url: impl Into<String>) -> &mut Self

Sets the URL for the Terms of Service.

Source

pub fn delete_tos_url(&mut self) -> &mut Self

Deletes the URL for the Terms of Service.

Source

pub fn repository_url(&mut self, url: Url) -> &mut Self

Sets the repository URL.

Source

pub fn set_feedback_url(&mut self, feedback_url: impl Into<String>) -> &mut Self

Sets the URL for the feedback.

Source

pub fn delete_feedback_url(&mut self) -> &mut Self

Deletes the URL for the feedback.

Source

pub fn use_object_storage(&mut self, use_object_storage: bool) -> &mut Self

Sets whether or not to use extenal object storage.

Source

pub fn object_storage_use_ssl( &mut self, object_storage_use_ssl: bool, ) -> &mut Self

Sets whether or not the extenal object storage uses SSL.

Source

pub fn object_storage_use_proxy( &mut self, object_storage_use_proxy: bool, ) -> &mut Self

Available on crate feature 12-31-0 only.

Sets whether or not the extenal object storage uses the proxy.

Source

pub fn object_storage_set_public_read( &mut self, object_storage_set_public_read: bool, ) -> &mut Self

Available on crate feature 12-47-0 only.

Sets whether or not to set 'public-read' when uploading to the extenal object storage.

Source

pub fn set_object_storage_base_url( &mut self, object_storage_base_url: Url, ) -> &mut Self

Sets the base URL of the extenal object storage.

Source

pub fn delete_object_storage_base_url(&mut self) -> &mut Self

Deletes the base URL of the extenal object storage.

Source

pub fn set_object_storage_port(&mut self, object_storage_port: u16) -> &mut Self

Sets the port number of the extenal object storage.

Source

pub fn delete_object_storage_port(&mut self) -> &mut Self

Deletes the port number of the extenal object storage.

Source

pub fn set_object_storage_bucket( &mut self, object_storage_bucket: impl Into<String>, ) -> &mut Self

Sets the bucket name for the extenal object storage.

Source

pub fn delete_object_storage_bucket(&mut self) -> &mut Self

Deletes the bucket name for the extenal object storage.

Source

pub fn set_object_storage_prefix( &mut self, object_storage_prefix: impl Into<String>, ) -> &mut Self

Sets the prefix for the extenal object storage.

Source

pub fn delete_object_storage_prefix(&mut self) -> &mut Self

Deletes the prefix for the extenal object storage.

Source

pub fn set_object_storage_endpoint( &mut self, object_storage_endpoint: impl Into<String>, ) -> &mut Self

Sets the endpoint for the extenal object storage.

Source

pub fn delete_object_storage_endpoint(&mut self) -> &mut Self

Deletes the endpoint for the extenal object storage.

Source

pub fn set_object_storage_region( &mut self, object_storage_region: impl Into<String>, ) -> &mut Self

Sets the region for the extenal object storage.

Source

pub fn delete_object_storage_region(&mut self) -> &mut Self

Deletes the region for the extenal object storage.

Source

pub fn set_object_storage_access_key( &mut self, object_storage_access_key: impl Into<String>, ) -> &mut Self

Sets the access key for the extenal object storage.

Source

pub fn delete_object_storage_access_key(&mut self) -> &mut Self

Deletes the access key for the extenal object storage.

Source

pub fn set_object_storage_secret_key( &mut self, object_storage_secret_key: impl Into<String>, ) -> &mut Self

Sets the secret key for the extenal object storage.

Source

pub fn delete_object_storage_secret_key(&mut self) -> &mut Self

Deletes the secret key for the extenal object storage.

Source§

impl<C: Client> MetaUpdateBuilder<C>

Source

pub async fn update(&self) -> Result<(), Error<C::Error>>

Updates the instance information.

Auto Trait Implementations§

§

impl<C> Freeze for MetaUpdateBuilder<C>
where C: Freeze,

§

impl<C> RefUnwindSafe for MetaUpdateBuilder<C>
where C: RefUnwindSafe,

§

impl<C> Send for MetaUpdateBuilder<C>
where C: Send,

§

impl<C> Sync for MetaUpdateBuilder<C>
where C: Sync,

§

impl<C> Unpin for MetaUpdateBuilder<C>
where C: Unpin,

§

impl<C> UnwindSafe for MetaUpdateBuilder<C>
where C: UnwindSafe,

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> 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, 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,