#[non_exhaustive]pub struct WeatherOperation {
pub location: String,
pub start: Option<String>,
pub duration: Option<u64>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location: String§start: Option<String>§duration: Option<u64>§rest: RestImplementations§
Source§impl WeatherOperation
impl WeatherOperation
Sourcepub fn builder(location: String) -> WeatherOperationBuilder
pub fn builder(location: String) -> WeatherOperationBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for WeatherOperation
impl Clone for WeatherOperation
Source§impl Debug for WeatherOperation
impl Debug for WeatherOperation
Source§impl DeclaredFields for WeatherOperation
impl DeclaredFields for WeatherOperation
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for WeatherOperation
impl<'de> Deserialize<'de> for WeatherOperation
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 PartialEq for WeatherOperation
impl PartialEq for WeatherOperation
Source§impl Serialize for WeatherOperation
impl Serialize for WeatherOperation
impl StructuralPartialEq for WeatherOperation
Auto Trait Implementations§
impl Freeze for WeatherOperation
impl RefUnwindSafe for WeatherOperation
impl Send for WeatherOperation
impl Sync for WeatherOperation
impl Unpin for WeatherOperation
impl UnsafeUnpin for WeatherOperation
impl UnwindSafe for WeatherOperation
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