pub struct MeUpdateBuilder<C> { /* private fields */ }Expand description
Builder for the update_me method.
Implementations§
Source§impl<C> MeUpdateBuilder<C>
impl<C> MeUpdateBuilder<C>
Sourcepub fn as_request(&self) -> &Request
pub fn as_request(&self) -> &Request
Gets the request object for reuse.
Sourcepub fn delete_name(&mut self) -> &mut Self
pub fn delete_name(&mut self) -> &mut Self
Deletes the name.
Sourcepub fn set_description(&mut self, description: impl Into<String>) -> &mut Self
pub fn set_description(&mut self, description: impl Into<String>) -> &mut Self
Sets the description.
Sourcepub fn delete_description(&mut self) -> &mut Self
pub fn delete_description(&mut self) -> &mut Self
Deletes the description.
Sourcepub fn set_language(&mut self, language: impl Into<String>) -> &mut Self
pub fn set_language(&mut self, language: impl Into<String>) -> &mut Self
Sets the language.
Sourcepub fn delete_language(&mut self) -> &mut Self
pub fn delete_language(&mut self) -> &mut Self
Deletes the language.
Sourcepub fn set_location(&mut self, location: impl Into<String>) -> &mut Self
pub fn set_location(&mut self, location: impl Into<String>) -> &mut Self
Sets the location.
Sourcepub fn delete_location(&mut self) -> &mut Self
pub fn delete_location(&mut self) -> &mut Self
Deletes the location.
Sourcepub fn set_birthday(&mut self, birthday: impl Into<String>) -> &mut Self
pub fn set_birthday(&mut self, birthday: impl Into<String>) -> &mut Self
Sets the birthday.
Sourcepub fn delete_birthday(&mut self) -> &mut Self
pub fn delete_birthday(&mut self) -> &mut Self
Deletes the birthday.
Sourcepub fn set_avatar(&mut self, avatar: impl EntityRef<DriveFile>) -> &mut Self
pub fn set_avatar(&mut self, avatar: impl EntityRef<DriveFile>) -> &mut Self
Sets the avatar.
Sourcepub fn delete_avatar(&mut self) -> &mut Self
pub fn delete_avatar(&mut self) -> &mut Self
Deletes the avatar.
Sets the banner.
Deletes the banner.
Sourcepub fn set_pinned_page(
&mut self,
pinned_page: impl EntityRef<Page>,
) -> &mut Self
pub fn set_pinned_page( &mut self, pinned_page: impl EntityRef<Page>, ) -> &mut Self
Sets the pinned page.
Sourcepub fn delete_pinned_page(&mut self) -> &mut Self
pub fn delete_pinned_page(&mut self) -> &mut Self
Deletes the pinned page.
Sourcepub fn set_fields(&mut self, fields: impl IntoUserFields) -> &mut Self
pub fn set_fields(&mut self, fields: impl IntoUserFields) -> &mut Self
Sets the fields in this user’s profile.
Since the user has four fields, it takes an array of length 1 to 4 as its argument.
§Examples
client
.update_me()
.set_fields([
("Website", "https://example.com/"),
("Twitter", "@username"),
])
.update()
.await?;Sourcepub fn delete_fields(&mut self) -> &mut Self
pub fn delete_fields(&mut self) -> &mut Self
Deletes all the fields in this user’s profile.
Sourcepub fn explorable(&mut self, explorable: bool) -> &mut Self
Available on crate feature 12-63-0 only.
pub fn explorable(&mut self, explorable: bool) -> &mut Self
12-63-0 only.Sets whether this user is visible in “Explore” section of the instance.
Sourcepub fn require_follow_request_for_bot(
&mut self,
require_follow_request_for_bot: bool,
) -> &mut Self
pub fn require_follow_request_for_bot( &mut self, require_follow_request_for_bot: bool, ) -> &mut Self
Sets whether this user requires a follow request from bots.
Sourcepub fn auto_accept_followed(&mut self, auto_accept_followed: bool) -> &mut Self
pub fn auto_accept_followed(&mut self, auto_accept_followed: bool) -> &mut Self
Sets whether to automatically accept follow requests from following users.
Sourcepub fn inject_featured_note(&mut self, inject_featured_note: bool) -> &mut Self
pub fn inject_featured_note(&mut self, inject_featured_note: bool) -> &mut Self
Sets whether to display featured notes in the timeline.
Sourcepub fn always_mark_nsfw(&mut self, always_mark_nsfw: bool) -> &mut Self
pub fn always_mark_nsfw(&mut self, always_mark_nsfw: bool) -> &mut Self
Sets whether to mark uploaded media as NSFW by default.
Sourcepub fn auto_watch(&mut self, auto_watch: bool) -> &mut Self
Available on non-crate feature 12-55-0 only.
pub fn auto_watch(&mut self, auto_watch: bool) -> &mut Self
12-55-0 only.Sets whether to receive notifications about other users’ notes that this user has reacted to or replied to.
Sourcepub fn no_crawle(&mut self, no_crawle: bool) -> &mut Self
Available on crate feature 12-60-0 only.
pub fn no_crawle(&mut self, no_crawle: bool) -> &mut Self
12-60-0 only.Sets whether to ask search engines not to index this user’s contents.
Sourcepub fn muted_words(
&mut self,
muted_words: impl Into<Query<String>>,
) -> &mut Self
pub fn muted_words( &mut self, muted_words: impl Into<Query<String>>, ) -> &mut Self
Sets the muted words for this user.