[][src]Struct wallabag_api::types::PatchEntry

pub struct PatchEntry {
    pub title: Option<String>,
    pub tags: Option<Vec<String>>,
    pub archive: Option<bool>,
    pub starred: Option<bool>,
    pub public: Option<bool>,
    pub content: Option<String>,
    pub language: Option<String>,
    pub preview_picture: Option<String>,
    pub published_at: Option<DateTime<Utc>>,
    pub authors: Option<String>,
    pub origin_url: Option<String>,
}

A struct representing an entry to be changed. Fields here are the only fields that can be modified directly via the api.

Setting a field to None causes the field to not be modified.

Fields

title: Option<String>tags: Option<Vec<String>>

List of tag labels as strings. Commas in tag labels are valid but discouraged.

archive: Option<bool>starred: Option<bool>public: Option<bool>content: Option<String>language: Option<String>preview_picture: Option<String>published_at: Option<DateTime<Utc>>authors: Option<String>

Formatted as "name 1, name 2"

origin_url: Option<String>

Trait Implementations

impl Debug for PatchEntry[src]

impl Default for PatchEntry[src]

Use this as a convenience. This allows doing something like the following instead of needing to explicitly setting each ignored value to None:

let archive_it = PatchEntry { archive: Some(true), .. Default::default() };

impl<'de> Deserialize<'de> for PatchEntry[src]

impl<'_> From<&'_ Entry> for PatchEntry[src]

Convert an Entry to a set of changes ready for sending to the api.

impl Serialize for PatchEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.