pub struct AdoptDevice {
pub site_id: String,
pub request: AdoptDeviceRequest,
}Expand description
Adopt a pending device. Endpoint: POST /v1/sites/{siteId}/devices
Fields§
§site_id: String§request: AdoptDeviceRequestImplementations§
Source§impl AdoptDevice
impl AdoptDevice
pub fn new(site_id: impl Into<String>, request: AdoptDeviceRequest) -> Self
Trait Implementations§
Source§impl Clone for AdoptDevice
impl Clone for AdoptDevice
Source§fn clone(&self) -> AdoptDevice
fn clone(&self) -> AdoptDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdoptDevice
impl Debug for AdoptDevice
Source§impl Endpoint for AdoptDevice
impl Endpoint for AdoptDevice
const PATH: &'static str = "sites/{site_id}/devices"
const METHOD: HttpMethod = HttpMethod::Post
type Response = MutationResponse<SiteDevice>
Source§fn build_path(&self) -> String
fn build_path(&self) -> String
Build the actual path for this endpoint.
Override this method when the endpoint has dynamic path parameters.
Auto Trait Implementations§
impl Freeze for AdoptDevice
impl RefUnwindSafe for AdoptDevice
impl Send for AdoptDevice
impl Sync for AdoptDevice
impl Unpin for AdoptDevice
impl UnsafeUnpin for AdoptDevice
impl UnwindSafe for AdoptDevice
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