pub struct ArticleDto {Show 15 fields
pub id: String,
pub tenant_id: String,
pub creator_id: String,
pub title: String,
pub url: String,
pub price_cents: u64,
pub description: Option<String>,
pub estimated_reading_time_minutes: Option<u16>,
pub preview_content: Option<String>,
pub status: ArticleStatusDto,
pub stats: ArticleStatsDto,
pub is_purchasable: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub published_at: Option<DateTime<Utc>>,
}Expand description
DTO for a paywall article in responses
Fields§
§id: String§tenant_id: String§creator_id: String§title: String§url: String§price_cents: u64§description: Option<String>§estimated_reading_time_minutes: Option<u16>§preview_content: Option<String>§status: ArticleStatusDto§stats: ArticleStatsDto§is_purchasable: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§published_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for ArticleDto
impl Clone for ArticleDto
Source§fn clone(&self) -> ArticleDto
fn clone(&self) -> ArticleDto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArticleDto
impl Debug for ArticleDto
Source§impl From<&PaywallArticle> for ArticleDto
impl From<&PaywallArticle> for ArticleDto
Source§fn from(article: &PaywallArticle) -> Self
fn from(article: &PaywallArticle) -> Self
Converts to this type from the input type.
Source§impl From<PaywallArticle> for ArticleDto
impl From<PaywallArticle> for ArticleDto
Source§fn from(article: PaywallArticle) -> Self
fn from(article: PaywallArticle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArticleDto
impl RefUnwindSafe for ArticleDto
impl Send for ArticleDto
impl Sync for ArticleDto
impl Unpin for ArticleDto
impl UnsafeUnpin for ArticleDto
impl UnwindSafe for ArticleDto
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