pub struct NewEntry {
pub url: String,
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 created.
At least url must be provided. If you wish to provide the HTML content you
must also provide content and title to prevent the wallabag server from
fetching it from the url.
Fields§
§url: String§title: Option<String>Tags containing a comma are valid but discouraged… Also note that these are tag labels as strings, not Tag objects.
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>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewEntry
impl<'de> Deserialize<'de> for NewEntry
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
Auto Trait Implementations§
impl Freeze for NewEntry
impl RefUnwindSafe for NewEntry
impl Send for NewEntry
impl Sync for NewEntry
impl Unpin for NewEntry
impl UnwindSafe for NewEntry
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