pub struct Rewardtb {Show 13 fields
pub reward_id: Option<i32>,
pub name: Option<String>,
pub image: Option<String>,
pub from_event: Option<String>,
pub from_event_id: Option<i32>,
pub reward_category: Option<i16>,
pub physical_category: Option<i16>,
pub price: Option<i32>,
pub total_number: Option<i32>,
pub stock: Option<i32>,
pub dead_line: Option<String>,
pub sponsor: Option<String>,
pub sponsor_id: Option<i32>,
}Expand description
奖品定义(对齐 Java Rewardtb / OpenAPI rewardId 等字段)
Fields§
§reward_id: Option<i32>奖品 ID
name: Option<String>奖品名称
image: Option<String>奖品图片 URL
from_event: Option<String>所属活动名称
from_event_id: Option<i32>所属活动 ID
reward_category: Option<i16>奖励类别:1 全员发放 / 2 兑换 / 3 抽奖
physical_category: Option<i16>实物类别:1 书籍 / 2 周边 / 3 游戏
price: Option<i32>兑换所需奖券数量
total_number: Option<i32>入库总量(-1 为无限)
stock: Option<i32>库存(-1 为无限)
dead_line: Option<String>兑换截止日期(对齐 Java yyyy-MM-dd'T'HH:mm:ssZ)
sponsor: Option<String>赞助者
sponsor_id: Option<i32>赞助者 ID
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rewardtb
impl<'de> Deserialize<'de> for Rewardtb
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 Rewardtb
impl RefUnwindSafe for Rewardtb
impl Send for Rewardtb
impl Sync for Rewardtb
impl Unpin for Rewardtb
impl UnsafeUnpin for Rewardtb
impl UnwindSafe for Rewardtb
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