pub struct DbTopic {
pub slug: String,
}Fields§
§slug: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbTopic
impl<'de> Deserialize<'de> for DbTopic
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 Eq for DbTopic
Source§impl Input for DbTopic
impl Input for DbTopic
fn native_db_bincode_encode_to_vec(&self) -> Vec<u8> ⓘ
fn native_db_bincode_decode_from_slice(slice: &[u8]) -> Self
fn native_db_model() -> DatabaseModel
fn native_db_primary_key(&self) -> DatabaseInnerKeyValue
fn native_db_secondary_keys( &self, ) -> HashMap<DatabaseKeyDefinition<DatabaseSecondaryKeyOptions>, DatabaseKeyValue>
fn to_item(&self) -> DatabaseInput
Source§impl Model for DbTopic
impl Model for DbTopic
fn native_model_id() -> u32
fn native_model_id_str() -> &'static str
fn native_model_version() -> u32
fn native_model_version_str() -> &'static str
fn native_model_encode_body(&self) -> Result<Vec<u8>, EncodeBodyError>
fn native_model_encode_downgrade_body(self, version: u32) -> Result<Vec<u8>>
fn native_model_decode_body( data: Vec<u8>, id: u32, ) -> Result<Self, DecodeBodyError>
fn native_model_decode_upgrade_body( data: Vec<u8>, id: u32, version: u32, ) -> Result<Self>
fn native_model_decode(data: Vec<u8>) -> Result<(Self, u32), Error>where
Self: Sized,
fn native_model_encode(&self) -> Result<Vec<u8>, Error>where
Self: Sized,
fn native_model_encode_downgrade(self, version: u32) -> Result<Vec<u8>, Error>where
Self: Sized,
impl StructuralPartialEq for DbTopic
Auto Trait Implementations§
impl Freeze for DbTopic
impl RefUnwindSafe for DbTopic
impl Send for DbTopic
impl Sync for DbTopic
impl Unpin for DbTopic
impl UnsafeUnpin for DbTopic
impl UnwindSafe for DbTopic
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.