pub struct Pi {Show 19 fields
pub id: i32,
pub last_boot: Option<String>,
pub network_settings: Option<Box<NetworkSettings>>,
pub user: Option<Box<User>>,
pub system_info: Option<Box<SystemInfo>>,
pub webrtc_edge: Option<Box<WebrtcStream>>,
pub webrtc_cloud: Option<Box<WebrtcStream>>,
pub latest_camera_snapshot_url: Option<String>,
pub workspace: Option<Box<Workspace>>,
pub octoprint_server: Option<Box<OctoPrintServer>>,
pub hostname: String,
pub favorite: bool,
pub sbc: SbcEnum,
pub setup_finished: bool,
pub nats_app: Option<Box<PiNatsApp>>,
pub urls: Box<PiUrls>,
pub shortname_urls: Box<PiUrls>,
pub mdns_urls: Box<PiUrls>,
pub created_dt: String,
}
Fields§
§id: i32
§last_boot: Option<String>
§network_settings: Option<Box<NetworkSettings>>
§user: Option<Box<User>>
§system_info: Option<Box<SystemInfo>>
§webrtc_edge: Option<Box<WebrtcStream>>
§webrtc_cloud: Option<Box<WebrtcStream>>
§latest_camera_snapshot_url: Option<String>
§workspace: Option<Box<Workspace>>
§octoprint_server: Option<Box<OctoPrintServer>>
§hostname: String
§favorite: bool
§sbc: SbcEnum
§setup_finished: bool
§nats_app: Option<Box<PiNatsApp>>
§urls: Box<PiUrls>
§shortname_urls: Box<PiUrls>
§mdns_urls: Box<PiUrls>
§created_dt: String
Implementations§
Source§impl Pi
impl Pi
pub fn new( id: i32, last_boot: Option<String>, network_settings: Option<NetworkSettings>, user: Option<User>, system_info: Option<SystemInfo>, webrtc_edge: Option<WebrtcStream>, webrtc_cloud: Option<WebrtcStream>, latest_camera_snapshot_url: Option<String>, workspace: Option<Workspace>, octoprint_server: Option<OctoPrintServer>, hostname: String, favorite: bool, sbc: SbcEnum, setup_finished: bool, nats_app: Option<PiNatsApp>, urls: PiUrls, shortname_urls: PiUrls, mdns_urls: PiUrls, created_dt: String, ) -> Pi
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pi
impl<'de> Deserialize<'de> for Pi
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 Pi
Auto Trait Implementations§
impl Freeze for Pi
impl RefUnwindSafe for Pi
impl Send for Pi
impl Sync for Pi
impl Unpin for Pi
impl UnwindSafe for Pi
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