#[non_exhaustive]pub struct CreateOrUpdateUserSettings {
pub settings: HashMap<String, String>,
pub updated_at: MangaDexDateTime,
/* private fields */
}Expand description
Create or update a user’s Settings.
This requires authentication.
Makes a request to POST /settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.settings: HashMap<String, String>§updated_at: MangaDexDateTimeImplementations§
Source§impl CreateOrUpdateUserSettings
impl CreateOrUpdateUserSettings
Sourcepub async fn send(&self) -> Result<UserSettingsAttributes>
pub async fn send(&self) -> Result<UserSettingsAttributes>
Send the request.
Trait Implementations§
Source§impl Clone for CreateOrUpdateUserSettings
impl Clone for CreateOrUpdateUserSettings
Source§fn clone(&self) -> CreateOrUpdateUserSettings
fn clone(&self) -> CreateOrUpdateUserSettings
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 moreSource§impl Debug for CreateOrUpdateUserSettings
impl Debug for CreateOrUpdateUserSettings
Auto Trait Implementations§
impl Freeze for CreateOrUpdateUserSettings
impl !RefUnwindSafe for CreateOrUpdateUserSettings
impl Send for CreateOrUpdateUserSettings
impl Sync for CreateOrUpdateUserSettings
impl Unpin for CreateOrUpdateUserSettings
impl !UnwindSafe for CreateOrUpdateUserSettings
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