pub struct Device {
pub name: String,
pub online: bool,
pub dev_id: String,
pub print_status: String,
pub nozzle_diameter: f64,
pub dev_model_name: String,
pub dev_access_code: String,
pub dev_product_name: String,
}Fields§
§name: String§online: bool§dev_id: String§print_status: String§nozzle_diameter: f64§dev_model_name: String§dev_access_code: String§dev_product_name: StringImplementations§
Source§impl Device
impl Device
Sourcepub async fn get_bambu_camera_url(
&self,
client: &Client,
) -> Result<Url, DeviceCameraError>
pub async fn get_bambu_camera_url( &self, client: &Client, ) -> Result<Url, DeviceCameraError>
Get the streaming URL for the camera on this device.
§Errors
This function can return a reqwest::Error if the request fails.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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