Struct mangadex_api::v5::settings::post::CreateOrUpdateUserSettings
source · 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§
§settings: HashMap<String, String>
§updated_at: MangaDexDateTime
Implementations§
source§impl CreateOrUpdateUserSettings
impl CreateOrUpdateUserSettings
sourcepub async fn send(&self) -> UserSettingsResponse
pub async fn send(&self) -> UserSettingsResponse
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 copy 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
source§impl Endpoint for CreateOrUpdateUserSettings
impl Endpoint for CreateOrUpdateUserSettings
§type Response = Result<UserSettingsAttributes, Error>
type Response = Result<UserSettingsAttributes, Error>
The response type.
source§fn require_auth(&self) -> bool
fn require_auth(&self) -> bool
Get whether auth is required for this request.
type Query = ()
type Body = CreateOrUpdateUserSettings
fn query(&self) -> Option<&Self::Query>
fn multipart(&self) -> Option<Form>
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