pub struct Questionnaire {
pub id: Option<i64>,
pub member_id: Option<i32>,
pub willingness: Option<i16>,
pub acceptable_lengths: Option<String>,
pub update_frequency: Option<i16>,
pub preferred_genres: Option<String>,
pub avoid_topics: Option<String>,
pub note: Option<String>,
pub remark: Option<String>,
pub last_assigned_time: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
组员接稿意愿问卷 (Questionnaire)
记录组员的:
- 接稿意愿强度 (1=随时, 2=有限, 3=暂不)
- 可接受篇幅和更新频率
- 偏好题材和雷区
对应 Java Questionnaire 实体。
Fields§
§id: Option<i64>主键 ID
member_id: Option<i32>组员 ID
willingness: Option<i16>接稿意愿:1-随时可接,2-有限接稿,3-暂不接稿
acceptable_lengths: Option<String>能接受的单篇篇幅(逗号分隔)
update_frequency: Option<i16>能接受的更新频率:1-每周多更,2-每周一更,3-两周一更,4-不定期
preferred_genres: Option<String>喜欢的题材(逗号分隔)
avoid_topics: Option<String>雷区(逗号分隔)
note: Option<String>补充说明
remark: Option<String>管理员备注
last_assigned_time: Option<DateTime<Utc>>上次派稿时间
created_at: Option<DateTime<Utc>>创建时间
updated_at: Option<DateTime<Utc>>更新时间
Trait Implementations§
Source§impl Clone for Questionnaire
impl Clone for Questionnaire
Source§fn clone(&self) -> Questionnaire
fn clone(&self) -> Questionnaire
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Questionnaire
impl Debug for Questionnaire
Source§impl Default for Questionnaire
impl Default for Questionnaire
Source§fn default() -> Questionnaire
fn default() -> Questionnaire
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Questionnaire
impl<'de> Deserialize<'de> for Questionnaire
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 Questionnaire
impl RefUnwindSafe for Questionnaire
impl Send for Questionnaire
impl Sync for Questionnaire
impl Unpin for Questionnaire
impl UnsafeUnpin for Questionnaire
impl UnwindSafe for Questionnaire
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