Struct wallabag_api::types::PatchEntry
source · 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>,
}Expand description
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>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>>Formatted as “name 1, name 2”
origin_url: Option<String>Trait Implementations§
source§impl Debug for PatchEntry
impl Debug for PatchEntry
source§impl Default for PatchEntry
impl Default for PatchEntry
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() };source§impl<'de> Deserialize<'de> for PatchEntry
impl<'de> Deserialize<'de> for PatchEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&Entry> for PatchEntry
impl From<&Entry> for PatchEntry
Convert an Entry to a set of changes ready for sending to the api.