[−][src]Struct wallabag_api::types::NewEntry
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>
Methods
impl NewEntry
[src]
pub fn new_with_url(url: String) -> Self
[src]
Create a new entry with a url (url is the only mandatory field). The
rest of the fields will be populated with None
.
Trait Implementations
impl Debug for NewEntry
[src]
impl<'de> Deserialize<'de> for NewEntry
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for NewEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewEntry
impl Send for NewEntry
impl Sync for NewEntry
impl Unpin for NewEntry
impl UnwindSafe for NewEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,