Struct leetcode_tui_rs::deserializers::question::TopicTag
source · pub struct TopicTag {
pub name: Option<String>,
pub id: String,
pub slug: Option<String>,
}
Fields§
§name: Option<String>
§id: String
§slug: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for TopicTag
impl<'de> Deserialize<'de> for TopicTag
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 ModelUtils for TopicTag
impl ModelUtils for TopicTag
type ActiveModel = ActiveModel
type Entity = Entity
type Model = Model
fn on_conflict() -> OnConflict
fn to_model(&self) -> AppResult<Self::Model>
fn to_db<'life0, 'life1, 'async_trait>( &'life0 self, db: &'life1 DatabaseConnection ) -> Pin<Box<dyn Future<Output = AppResult<InsertResult<Self::ActiveModel>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn post_multi_insert<'life0, 'async_trait>( _db: &'life0 DatabaseConnection, _objects: Vec<Self> ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where Self: Send + 'async_trait, 'life0: 'async_trait,
fn multi_insert<'life0, 'async_trait>( db: &'life0 DatabaseConnection, objects: Vec<Self> ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where Self: Send + 'async_trait, 'life0: 'async_trait,
fn get_active_model(&self) -> AppResult<Self::ActiveModel>
Auto Trait Implementations§
impl RefUnwindSafe for TopicTag
impl Send for TopicTag
impl Sync for TopicTag
impl Unpin for TopicTag
impl UnwindSafe for TopicTag
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