pub struct OptionalInput<T>(/* private fields */);Expand description
可省略端点参数的转换目标。
端点通过 TryInto<OptionalInput<T>> 同时接受外部表示、领域值和裸 None,
转换完成后只保留 Option<T>。
Trait Implementations§
Source§impl From<&NaturalDate> for OptionalInput<NaturalDate>
impl From<&NaturalDate> for OptionalInput<NaturalDate>
Source§fn from(value: &NaturalDate) -> Self
fn from(value: &NaturalDate) -> Self
Converts to this type from the input type.
Source§impl From<&ReportType> for OptionalInput<ReportType>
impl From<&ReportType> for OptionalInput<ReportType>
Source§fn from(value: &ReportType) -> Self
fn from(value: &ReportType) -> Self
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for OptionalInput<T>
impl<T> From<Option<T>> for OptionalInput<T>
Source§impl<T> From<T> for OptionalInput<T>
impl<T> From<T> for OptionalInput<T>
Source§impl TryFrom<&String> for OptionalInput<NaturalDate>
impl TryFrom<&String> for OptionalInput<NaturalDate>
Source§impl TryFrom<&String> for OptionalInput<ReportType>
impl TryFrom<&String> for OptionalInput<ReportType>
Source§impl TryFrom<&str> for OptionalInput<NaturalDate>
impl TryFrom<&str> for OptionalInput<NaturalDate>
Source§impl TryFrom<&str> for OptionalInput<ReportType>
impl TryFrom<&str> for OptionalInput<ReportType>
Source§impl TryFrom<String> for OptionalInput<NaturalDate>
impl TryFrom<String> for OptionalInput<NaturalDate>
Auto Trait Implementations§
impl<T> Freeze for OptionalInput<T>
impl<T> RefUnwindSafe for OptionalInput<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for OptionalInput<T>
impl<T> Sync for OptionalInput<T>
impl<T> Unpin for OptionalInput<T>
impl<T> UnsafeUnpin for OptionalInput<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for OptionalInput<T>where
Option<T>: UnwindSafe,
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