pub struct TemplateSiteWithEvents {
pub site: Site,
pub view: String,
pub delete: String,
pub last_update: Option<TemplateSiteEvent>,
pub events: Vec<TemplateSiteEvent>,
}
Fields
site: Site
view: String
delete: String
last_update: Option<TemplateSiteEvent>
events: Vec<TemplateSiteEvent>
Implementations
sourceimpl TemplateSiteWithEvents
impl TemplateSiteWithEvents
pub fn new(
site: Site,
last_update: Option<TemplateSiteEvent>,
events: Vec<TemplateSiteEvent>
) -> Self
Trait Implementations
sourceimpl Clone for TemplateSiteWithEvents
impl Clone for TemplateSiteWithEvents
sourcefn clone(&self) -> TemplateSiteWithEvents
fn clone(&self) -> TemplateSiteWithEvents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TemplateSiteWithEvents
impl Debug for TemplateSiteWithEvents
sourceimpl<'de> Deserialize<'de> for TemplateSiteWithEvents
impl<'de> Deserialize<'de> for TemplateSiteWithEvents
sourcefn 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
sourceimpl PartialEq<TemplateSiteWithEvents> for TemplateSiteWithEvents
impl PartialEq<TemplateSiteWithEvents> for TemplateSiteWithEvents
sourcefn eq(&self, other: &TemplateSiteWithEvents) -> bool
fn eq(&self, other: &TemplateSiteWithEvents) -> bool
sourceimpl Serialize for TemplateSiteWithEvents
impl Serialize for TemplateSiteWithEvents
impl Eq for TemplateSiteWithEvents
impl StructuralEq for TemplateSiteWithEvents
impl StructuralPartialEq for TemplateSiteWithEvents
Auto Trait Implementations
impl RefUnwindSafe for TemplateSiteWithEvents
impl Send for TemplateSiteWithEvents
impl Sync for TemplateSiteWithEvents
impl Unpin for TemplateSiteWithEvents
impl UnwindSafe for TemplateSiteWithEvents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.