pub struct OptionalFields {
pub notes: Option<String>,
pub icon: Option<String>,
pub icon_color: Option<String>,
pub sort_index: Option<usize>,
}Expand description
可选字段集合
Fields§
§notes: Option<String>§icon: Option<String>§icon_color: Option<String>§sort_index: Option<usize>Implementations§
Source§impl OptionalFields
impl OptionalFields
Sourcepub fn from_provider(provider: &Provider) -> Self
pub fn from_provider(provider: &Provider) -> Self
从现有 Provider 提取可选字段
Trait Implementations§
Source§impl Default for OptionalFields
impl Default for OptionalFields
Source§fn default() -> OptionalFields
fn default() -> OptionalFields
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptionalFields
impl RefUnwindSafe for OptionalFields
impl Send for OptionalFields
impl Sync for OptionalFields
impl Unpin for OptionalFields
impl UnsafeUnpin for OptionalFields
impl UnwindSafe for OptionalFields
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> 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