pub struct Ntp {
pub en: Option<bool>,
pub host: Option<String>,
pub tz: Option<TimeZoneId>,
pub offset: Option<u32>,
pub ampm: Option<bool>,
pub ln: Option<f64>,
pub lt: Option<f64>,
}
Fields§
§en: Option<bool>
get internet time. Only required if you use clock overlays or time-activated macros
host: Option<String>
NTP server to use
tz: Option<TimeZoneId>
Timezone ID. Refer to timezones array in wled10_ntp.ino
offset: Option<u32>
Seconds to offset from UTC before timzone calculation
ampm: Option<bool>
Use AM/PM; 12h/24h clock format
ln: Option<f64>
longitude
lt: Option<f64>
latitude
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ntp
impl<'de> Deserialize<'de> for Ntp
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
impl StructuralPartialEq for Ntp
Auto Trait Implementations§
impl Freeze for Ntp
impl RefUnwindSafe for Ntp
impl Send for Ntp
impl Sync for Ntp
impl Unpin for Ntp
impl UnwindSafe for Ntp
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