pub struct ControllerOption {
pub prefix: Option<String>,
pub api: Vec<CrudApi>,
pub page_query_op: QueryOption,
pub list_query_op: QueryOption,
pub info_ignore_property: Vec<String>,
}Expand description
控制器配置
Fields§
§prefix: Option<String>路由前缀
api: Vec<CrudApi>启用的 API
page_query_op: QueryOption分页查询配置
list_query_op: QueryOption列表查询配置
info_ignore_property: Vec<String>info 忽略返回属性
Trait Implementations§
Source§impl Clone for ControllerOption
impl Clone for ControllerOption
Source§fn clone(&self) -> ControllerOption
fn clone(&self) -> ControllerOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControllerOption
impl Debug for ControllerOption
Source§impl Default for ControllerOption
impl Default for ControllerOption
Source§fn default() -> ControllerOption
fn default() -> ControllerOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControllerOption
impl RefUnwindSafe for ControllerOption
impl Send for ControllerOption
impl Sync for ControllerOption
impl Unpin for ControllerOption
impl UnsafeUnpin for ControllerOption
impl UnwindSafe for ControllerOption
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more