pub struct NewsQuery {
pub keyword: String,
pub last_cid: Option<String>,
}Expand description
搜索新闻查询参数
Fields§
§keyword: String搜索关键词
last_cid: Option<String>分页参数,从指定cid之后开始获取
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewsQuery
impl<'de> Deserialize<'de> for NewsQuery
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 IntoParams for NewsQuery
impl IntoParams for NewsQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for NewsQuery
impl RefUnwindSafe for NewsQuery
impl Send for NewsQuery
impl Sync for NewsQuery
impl Unpin for NewsQuery
impl UnwindSafe for NewsQuery
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