pub struct Model {Show 22 fields
pub id: i32,
pub manga_id: i32,
pub manga_episode: String,
pub episode_type: String,
pub manga_episode_name: Option<String>,
pub provider_id: Option<i32>,
pub translator_id: Option<i32>,
pub proofreader_id: Option<i32>,
pub letterer_id: Option<i32>,
pub timer_id: Option<i32>,
pub reviewer_id: Option<i32>,
pub setup_time: DateTime,
pub update_time: DateTime,
pub translator_file: Option<String>,
pub proofreader_file: Option<String>,
pub timer_file: Option<String>,
pub publish_link: Option<String>,
pub provider_file_oss_id: Option<i32>,
pub translator_file_oss_id: Option<i32>,
pub proofreader_file_oss_id: Option<i32>,
pub letterer_file_oss_id: Option<i32>,
pub timer_file_oss_id: Option<i32>,
}Expand description
mangaepisodetb 表的 SeaORM 行模型。 漫画话数主表,承载单话编号、负责人、文件、发布链接和 OSS 文件引用。
Fields§
§id: i32漫画话数主键,自增 ID,是任务流转、文件、RSS 和统计的核心话数引用。 对应数据库列 Id。
manga_id: i32所属漫画 ID,指向 mangatb,用于把话数归属到具体作品。 对应数据库列 mangaId。
manga_episode: String话数编号,使用字符串兼容小数话、番外、卷内编号和非数字标题。 对应数据库列 mangaEpisode。
episode_type: String话数分类(MAIN 正篇,EXTRA 番外和特典)。
manga_episode_name: Option<String>话数副标题或名称,可为空,用于列表和详情页补充展示。 对应数据库列 mangaEpisodeName。
provider_id: Option<i32>图源负责组员 ID,表示提供原图或原始素材的人。 对应数据库列 providerId。
translator_id: Option<i32>翻译负责组员 ID,表示当前话翻译任务的承接人。 对应数据库列 translatorId。
proofreader_id: Option<i32>校对负责组员 ID,表示当前话校对任务的承接人。 对应数据库列 proofreaderId。
letterer_id: Option<i32>嵌字负责组员 ID,表示当前话嵌字或修图任务的承接人。 对应数据库列 lettererId。
timer_id: Option<i32>时轴负责组员 ID,主要用于动态漫画或视频类任务的时轴制作。 对应数据库列 timerId。
reviewer_id: Option<i32>审稿或发布负责组员 ID,表示最终审核和发布流程的负责人。 对应数据库列 reviewerId。
setup_time: DateTime话数创建时间,记录任务被建立或进入系统的时间。 对应数据库列 setupTime。
update_time: DateTime话数最近更新时间,通常随任务进度、文件或发布状态变更。 对应数据库列 updateTime。
translator_file: Option<String>翻译稿本地历史路径,兼容旧数据,新增文件优先使用 OSS 字段。 对应数据库列 translatorFile。
proofreader_file: Option<String>校对稿本地历史路径,兼容旧数据,新增文件优先使用 OSS 字段。 对应数据库列 proofreaderFile。
timer_file: Option<String>时轴文件本地历史路径,兼容旧数据,新增文件优先使用 OSS 字段。 对应数据库列 timerFile。
publish_link: Option<String>发布链接或成品链接,用于前台访问、下载和已发布状态判断。 对应数据库列 publishLink。
provider_file_oss_id: Option<i32>图源文件在 OSS 表中的对象 ID,关联原始素材上传记录。 对应数据库列 provider_file_oss_id。
translator_file_oss_id: Option<i32>翻译文件在 OSS 表中的对象 ID,关联翻译稿上传记录。 对应数据库列 translator_file_oss_id。
proofreader_file_oss_id: Option<i32>校对文件在 OSS 表中的对象 ID,关联校对稿上传记录。 对应数据库列 proofreader_file_oss_id。
letterer_file_oss_id: Option<i32>嵌字成品文件在 OSS 表中的对象 ID,关联最终成品或嵌字文件。 对应数据库列 letterer_file_oss_id。
timer_file_oss_id: Option<i32>时轴文件在 OSS 表中的对象 ID,关联字幕或时间轴文件上传记录。 对应数据库列 timer_file_oss_id。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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>,
Source§impl From<Model> for ActiveModel
impl From<Model> for ActiveModel
Source§impl FromQueryResult for Model
impl FromQueryResult for Model
Source§fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
§fn from_query_result_optional(
res: &QueryResult,
pre: &str,
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional( res: &QueryResult, pre: &str, ) -> Result<Option<Self>, DbErr>
§fn from_query_result_nullable(
res: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( res: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Source§impl IntoActiveModel<ActiveModel> for Model
impl IntoActiveModel<ActiveModel> for Model
Source§fn into_active_model(self) -> ActiveModel
fn into_active_model(self) -> ActiveModel
Source§impl ModelTrait for Model
impl ModelTrait for Model
type Entity = Entity
Source§fn get(&self, c: <Self::Entity as EntityTrait>::Column) -> Value
fn get(&self, c: <Self::Entity as EntityTrait>::Column) -> Value
Source§fn set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)
fn set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)
§fn find_linked<L>(&self, l: L) -> Select<<L as Linked>::ToEntity>where
L: Linked<FromEntity = Self::Entity>,
fn find_linked<L>(&self, l: L) -> Select<<L as Linked>::ToEntity>where
L: Linked<FromEntity = Self::Entity>,
§fn delete<'a, 'async_trait, A, C>(
self,
db: &'a C,
) -> Pin<Box<dyn Future<Output = Result<DeleteResult, DbErr>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: IntoActiveModel<A> + 'async_trait,
C: ConnectionTrait + 'async_trait,
A: ActiveModelTrait<Entity = Self::Entity> + ActiveModelBehavior + Send + 'a + 'async_trait,
fn delete<'a, 'async_trait, A, C>(
self,
db: &'a C,
) -> Pin<Box<dyn Future<Output = Result<DeleteResult, DbErr>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: IntoActiveModel<A> + 'async_trait,
C: ConnectionTrait + 'async_trait,
A: ActiveModelTrait<Entity = Self::Entity> + ActiveModelBehavior + Send + 'a + 'async_trait,
Source§impl TryFrom<ActiveModel> for Model
impl TryFrom<ActiveModel> for Model
Source§impl TryIntoModel<Model> for ActiveModel
impl TryIntoModel<Model> for ActiveModel
Source§fn try_into_model(self) -> Result<Model, DbErr>
fn try_into_model(self) -> Result<Model, DbErr>
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request