Struct letterboxd::FilmRelationshipUpdateRequest [] [src]

pub struct FilmRelationshipUpdateRequest {
    pub watched: Option<bool>,
    pub liked: Option<bool>,
    pub in_watchlist: Option<bool>,
    pub rating: Option<f32>,
}

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

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.

Set to true to change the film’s status for the authenticated member to ‘liked’ or false for ‘not liked’.

Set to true to add the film to the authenticated member’s watchlist, or false to remove it.

Accepts values between 0.5 and 5.0, with increments of 0.5, or null (to remove the rating).

Trait Implementations

impl Debug for FilmRelationshipUpdateRequest
[src]

[src]

Formats the value using the given formatter.

impl Clone for FilmRelationshipUpdateRequest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for FilmRelationshipUpdateRequest
[src]

[src]

Returns the "default value" for a type. Read more