pub struct UpgradeWindow {
pub duration: Option<i64>,
pub start_hour_utc: Option<i64>,
pub weekday: Option<i64>,
}Expand description
UpgradeWindow from the ClickHouse Cloud API.
Fields§
§duration: Option<i64>§start_hour_utc: Option<i64>§weekday: Option<i64>Trait Implementations§
Source§impl Clone for UpgradeWindow
impl Clone for UpgradeWindow
Source§fn clone(&self) -> UpgradeWindow
fn clone(&self) -> UpgradeWindow
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 UpgradeWindow
impl Debug for UpgradeWindow
Source§impl Default for UpgradeWindow
impl Default for UpgradeWindow
Source§fn default() -> UpgradeWindow
fn default() -> UpgradeWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradeWindow
impl<'de> Deserialize<'de> for UpgradeWindow
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 UpgradeWindow
impl PartialEq for UpgradeWindow
Source§impl Serialize for UpgradeWindow
impl Serialize for UpgradeWindow
impl StructuralPartialEq for UpgradeWindow
Source§impl TryFrom<UpgradeWindow> for UpgradeWindowPutRequest
impl TryFrom<UpgradeWindow> for UpgradeWindowPutRequest
Source§fn try_from(value: UpgradeWindow) -> Result<Self, Self::Error>
fn try_from(value: UpgradeWindow) -> Result<Self, Self::Error>
Turns a fetched upgrade window into one that can be re-sent.
duration is response-only (the API derives it), so only the window’s
start hour and weekday cross over — and both are required.
Source§type Error = MissingRequiredFields
type Error = MissingRequiredFields
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for UpgradeWindow
impl RefUnwindSafe for UpgradeWindow
impl Send for UpgradeWindow
impl Sync for UpgradeWindow
impl Unpin for UpgradeWindow
impl UnsafeUnpin for UpgradeWindow
impl UnwindSafe for UpgradeWindow
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