pub struct Topic {
pub id: String,
pub created_at: String,
pub updated_at: String,
pub name: String,
pub email_total: i64,
pub sms_total: i64,
pub push_total: i64,
pub subscribe: Vec<String>,
}Expand description
Topic
Fields§
§id: StringTopic ID.
created_at: StringTopic creation time in ISO 8601 format.
updated_at: StringTopic update date in ISO 8601 format.
name: StringThe name of the topic.
email_total: i64Total count of email subscribers subscribed to the topic.
sms_total: i64Total count of SMS subscribers subscribed to the topic.
push_total: i64Total count of push subscribers subscribed to the topic.
subscribe: Vec<String>Subscribe permissions.
Implementations§
Source§impl Topic
impl Topic
Sourcepub fn created_at(&self) -> &String
pub fn created_at(&self) -> &String
Get created_at
Sourcepub fn updated_at(&self) -> &String
pub fn updated_at(&self) -> &String
Get updated_at
Sourcepub fn email_total(&self) -> &i64
pub fn email_total(&self) -> &i64
Get email_total
Sourcepub fn push_total(&self) -> &i64
pub fn push_total(&self) -> &i64
Get push_total
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Topic
impl<'de> Deserialize<'de> for Topic
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
impl Model for Topic
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnsafeUnpin for Topic
impl UnwindSafe for Topic
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