pub struct Entry<T: RulesText> {
pub id: Uuid,
pub campaign: Option<Uuid>,
pub text: T,
pub version: u64,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored piece of rules text: server-assigned metadata plus the text.
Fields§
§id: Uuid§campaign: Option<Uuid>The campaign whose homebrew it is; None for the shared library.
text: T§version: u64§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Entry<T>where
T: RulesText,
impl<'de, T> Deserialize<'de> for Entry<T>where
T: RulesText,
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<T: RulesText> StructuralPartialEq for Entry<T>
Auto Trait Implementations§
impl<T> Freeze for Entry<T>where
T: Freeze,
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>
impl<T> Sync for Entry<T>
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnsafeUnpin for Entry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Entry<T>where
T: UnwindSafe,
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