pub struct Magazine {
pub id: Option<i32>,
pub magazine_name: Option<String>,
pub type: Option<i16>,
pub update_time: Option<String>,
pub price: Option<i32>,
}Expand description
连载杂志信息
记录漫画所连载的杂志名称及相关元数据。
每条记录对应 magazine 表中的一行。
§字段说明
| 字段 | 数据库列 | 说明 |
|---|---|---|
id | Id | 自增主键,新增时为 None |
magazine_name | magazineName | 杂志名称,如“周刊少年Jump“ |
r#type | type | 杂志种类分类 |
update_time | updateTime | 最后更新时间 |
price | price | 每期售价(日元) |
§序列化
JSON 格式(camelCase),r#type 序列化为 "type":
{"id": 1, "magazineName": "周刊少年Jump", "type": 1, "price": 290}注意:Rust 中字段名为 r#type 因为 type 是保留字,
但 #[serde(rename_all = "camelCase")] 确保 JSON 输出为 "type"。
§对应 Java 类
Java Magazine 实体。
Fields§
§id: Option<i32>杂志自增主键,新增时为 None
magazine_name: Option<String>杂志名称
type: Option<i16>杂志种类编号
update_time: Option<String>记录最后更新时间
price: Option<i32>每期售价(日元)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Magazine
impl<'de> Deserialize<'de> for Magazine
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
Auto Trait Implementations§
impl Freeze for Magazine
impl RefUnwindSafe for Magazine
impl Send for Magazine
impl Sync for Magazine
impl Unpin for Magazine
impl UnsafeUnpin for Magazine
impl UnwindSafe for Magazine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request