pub struct BaseEntity {
pub id: Uuid,
pub href: Option<String>,
pub name: String,
pub description: Option<String>,
pub version: Option<String>,
pub lifecycle_status: LifecycleStatus,
pub valid_for: Option<TimePeriod>,
pub last_update: Option<DateTime<Utc>>,
}Expand description
Base entity with common fields
Fields§
§id: UuidUnique identifier
href: Option<String>Resource URI
name: StringName
description: Option<String>Description
version: Option<String>Version
lifecycle_status: LifecycleStatusLifecycle status
valid_for: Option<TimePeriod>Creation date
last_update: Option<DateTime<Utc>>Last update date
Trait Implementations§
Source§impl Clone for BaseEntity
impl Clone for BaseEntity
Source§fn clone(&self) -> BaseEntity
fn clone(&self) -> BaseEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BaseEntity
impl Debug for BaseEntity
Source§impl<'de> Deserialize<'de> for BaseEntity
impl<'de> Deserialize<'de> for BaseEntity
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 Serialize for BaseEntity
impl Serialize for BaseEntity
Auto Trait Implementations§
impl Freeze for BaseEntity
impl RefUnwindSafe for BaseEntity
impl Send for BaseEntity
impl Sync for BaseEntity
impl Unpin for BaseEntity
impl UnsafeUnpin for BaseEntity
impl UnwindSafe for BaseEntity
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