pub struct OctoPrintSettingsRequest {
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 octoprint_server: i32,
}
Fields§
§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>
§octoprint_server: i32
Implementations§
Source§impl OctoPrintSettingsRequest
impl OctoPrintSettingsRequest
pub fn new(octoprint_server: i32) -> OctoPrintSettingsRequest
Trait Implementations§
Source§impl Clone for OctoPrintSettingsRequest
impl Clone for OctoPrintSettingsRequest
Source§fn clone(&self) -> OctoPrintSettingsRequest
fn clone(&self) -> OctoPrintSettingsRequest
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 OctoPrintSettingsRequest
impl Debug for OctoPrintSettingsRequest
Source§impl Default for OctoPrintSettingsRequest
impl Default for OctoPrintSettingsRequest
Source§fn default() -> OctoPrintSettingsRequest
fn default() -> OctoPrintSettingsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OctoPrintSettingsRequest
impl<'de> Deserialize<'de> for OctoPrintSettingsRequest
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 OctoPrintSettingsRequest
impl PartialEq for OctoPrintSettingsRequest
Source§fn eq(&self, other: &OctoPrintSettingsRequest) -> bool
fn eq(&self, other: &OctoPrintSettingsRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for OctoPrintSettingsRequest
impl Serialize for OctoPrintSettingsRequest
impl StructuralPartialEq for OctoPrintSettingsRequest
Auto Trait Implementations§
impl Freeze for OctoPrintSettingsRequest
impl RefUnwindSafe for OctoPrintSettingsRequest
impl Send for OctoPrintSettingsRequest
impl Sync for OctoPrintSettingsRequest
impl Unpin for OctoPrintSettingsRequest
impl UnwindSafe for OctoPrintSettingsRequest
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