pub struct Announcement {
pub id: Id<Announcement>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub text: String,
pub title: String,
pub image_url: Option<Url>,
}Fields§
§id: Id<Announcement>§created_at: DateTime<Utc>§updated_at: Option<DateTime<Utc>>§text: String§title: String§image_url: Option<Url>Trait Implementations§
Source§impl Clone for Announcement
impl Clone for Announcement
Source§fn clone(&self) -> Announcement
fn clone(&self) -> Announcement
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 Announcement
impl Debug for Announcement
Source§impl<'de> Deserialize<'de> for Announcement
impl<'de> Deserialize<'de> for Announcement
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 Entity for Announcement
impl Entity for Announcement
Source§fn id(&self) -> Id<Announcement>
fn id(&self) -> Id<Announcement>
Gets the ID.
Source§impl PaginationItem for Announcement
impl PaginationItem for Announcement
Source§type Id = Id<Announcement>
type Id = Id<Announcement>
The ID type.
Source§fn item_id(&self) -> Id<Announcement>
fn item_id(&self) -> Id<Announcement>
Extracts an ID from the item.
Auto Trait Implementations§
impl Freeze for Announcement
impl RefUnwindSafe for Announcement
impl Send for Announcement
impl Sync for Announcement
impl Unpin for Announcement
impl UnwindSafe for Announcement
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