pub struct OctoPrintSettings {
pub id: i32,
pub octoprint_enabled: Option<bool>,
pub events_enabled: Option<bool>,
pub sync_gcode: Option<bool>,
pub sync_printer_profiles: Option<bool>,
pub sync_backups: Option<bool>,
pub auto_backup: Option<String>,
pub updated_dt: String,
pub octoprint_server: i32,
pub user: Option<i32>,
}
Fields§
§id: i32
§octoprint_enabled: Option<bool>
Start OctoPrint service
events_enabled: Option<bool>
Send OctoPrint events related to print job status/progress to PrintNanny Cloud https://docs.octoprint.org/en/master/events/index.html
sync_gcode: Option<bool>
Sync Gcode files to/from PrintNanny Cloud
sync_printer_profiles: Option<bool>
Sync Printer Profiles to/from PrintNanny Cloud
sync_backups: Option<bool>
Upload OctoPrint backups to PrintNanny Cloud
auto_backup: Option<String>
§updated_dt: String
§octoprint_server: i32
§user: Option<i32>
Implementations§
Trait Implementations§
Source§impl Clone for OctoPrintSettings
impl Clone for OctoPrintSettings
Source§fn clone(&self) -> OctoPrintSettings
fn clone(&self) -> OctoPrintSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OctoPrintSettings
impl Debug for OctoPrintSettings
Source§impl Default for OctoPrintSettings
impl Default for OctoPrintSettings
Source§fn default() -> OctoPrintSettings
fn default() -> OctoPrintSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OctoPrintSettings
impl<'de> Deserialize<'de> for OctoPrintSettings
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 OctoPrintSettings
impl PartialEq for OctoPrintSettings
Source§impl Serialize for OctoPrintSettings
impl Serialize for OctoPrintSettings
impl StructuralPartialEq for OctoPrintSettings
Auto Trait Implementations§
impl Freeze for OctoPrintSettings
impl RefUnwindSafe for OctoPrintSettings
impl Send for OctoPrintSettings
impl Sync for OctoPrintSettings
impl Unpin for OctoPrintSettings
impl UnwindSafe for OctoPrintSettings
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