Struct google_spectrum1_explorer::api::PawsInitRequest
source · pub struct PawsInitRequest {
pub device_desc: Option<DeviceDescriptor>,
pub location: Option<GeoLocation>,
pub type_: Option<String>,
pub version: Option<String>,
}
Expand description
The initialization request message allows the master device to initiate exchange of capabilities with the database.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- init paws (request)
Fields§
§device_desc: Option<DeviceDescriptor>
The DeviceDescriptor parameter is required. If the database does not support the device or any of the rulesets specified in the device descriptor, it must return an UNSUPPORTED error code in the error response.
location: Option<GeoLocation>
A device’s geolocation is required.
type_: Option<String>
The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, …).
Required field.
version: Option<String>
The PAWS version. Must be exactly 1.0.
Required field.
Trait Implementations§
source§impl Clone for PawsInitRequest
impl Clone for PawsInitRequest
source§fn clone(&self) -> PawsInitRequest
fn clone(&self) -> PawsInitRequest
Returns a copy of the value. Read more
1.0.0 · 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 PawsInitRequest
impl Debug for PawsInitRequest
source§impl Default for PawsInitRequest
impl Default for PawsInitRequest
source§fn default() -> PawsInitRequest
fn default() -> PawsInitRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PawsInitRequest
impl<'de> Deserialize<'de> for PawsInitRequest
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 Serialize for PawsInitRequest
impl Serialize for PawsInitRequest
impl RequestValue for PawsInitRequest
Auto Trait Implementations§
impl RefUnwindSafe for PawsInitRequest
impl Send for PawsInitRequest
impl Sync for PawsInitRequest
impl Unpin for PawsInitRequest
impl UnwindSafe for PawsInitRequest
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