pub struct FilmRelationshipUpdateRequest {
pub watched: Option<bool>,
pub liked: Option<bool>,
pub in_watchlist: Option<bool>,
pub rating: Option<f32>,
}
Expand description
When PATCHing a film relationship, you may send all of the current property struct values, or just those you wish to change. Properties that violate business rules (see watched below) or contain invalid values will be ignored.
Fields§
§watched: Option<bool>
Set to true to change the film’s status for the authenticated member to ‘watched’ or false for ‘not watched’. If the status is changed to ‘watched’ and the film is in the member’s watchlist, it will be removed as part of this action. You may not change the status of a film to ‘not watched’ if there is existing activity (a review or diary entry) for the authenticated member—check the messages returned from this endpoint to ensure no such business rules have been violated.
liked: Option<bool>
Set to true to change the film’s status for the authenticated member to ‘liked’ or false for ‘not liked’.
in_watchlist: Option<bool>
Set to true to add the film to the authenticated member’s watchlist, or false to remove it.
rating: Option<f32>
Accepts values between 0.5 and 5.0, with increments of 0.5, or null (to remove the rating).
Trait Implementations§
source§impl Clone for FilmRelationshipUpdateRequest
impl Clone for FilmRelationshipUpdateRequest
source§fn clone(&self) -> FilmRelationshipUpdateRequest
fn clone(&self) -> FilmRelationshipUpdateRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more