[][src]Struct google_spectrum1_explorer::PawsGetSpectrumRequest

pub struct PawsGetSpectrumRequest {
    pub device_desc: Option<DeviceDescriptor>,
    pub version: Option<String>,
    pub antenna: Option<AntennaCharacteristics>,
    pub request_type: Option<String>,
    pub capabilities: Option<DeviceCapabilities>,
    pub master_device_desc: Option<DeviceDescriptor>,
    pub location: Option<GeoLocation>,
    pub owner: Option<DeviceOwner>,
    pub type_: Option<String>,
}

The request message for the available spectrum query protocol which must include the device's geolocation.

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).

Fields

device_desc: Option<DeviceDescriptor>

When the available spectrum request is made on behalf of a specific device (a master or slave device), device descriptor information for that device is required (in such cases, the requestType parameter must be empty). When a requestType value is specified, device descriptor information may be optional or required according to the rules of the applicable regulatory domain.

version: Option<String>

The PAWS version. Must be exactly 1.0.

Required field.

antenna: Option<AntennaCharacteristics>

Depending on device type and regulatory domain, the characteristics of the antenna may be required.

request_type: Option<String>

The request type parameter is an optional parameter that can be used to modify an available spectrum request, but its use depends on applicable regulatory rules. It may be used, for example, to request generic slave device parameters without having to specify the device descriptor for a specific device. When the requestType parameter is missing, the request is for a specific device (master or slave), and the deviceDesc parameter for the device on whose behalf the request is made is required.

capabilities: Option<DeviceCapabilities>

The master device may include its device capabilities to limit the available-spectrum response to the spectrum that is compatible with its capabilities. The database should not return spectrum that is incompatible with the specified capabilities.

master_device_desc: Option<DeviceDescriptor>

When an available spectrum request is made by the master device (a device with geolocation capability) on behalf of a slave device (a device without geolocation capability), the rules of the applicable regulatory domain may require the master device to provide its own device descriptor information (in addition to device descriptor information for the slave device, which is provided in a separate parameter).

location: Option<GeoLocation>

The geolocation of the master device (a device with geolocation capability that makes an available spectrum request) is required whether the master device is making the request on its own behalf or on behalf of a slave device (one without geolocation capability). The location must be the location of the radiation center of the master device's antenna. To support mobile devices, a regulatory domain may allow the anticipated position of the master device to be given instead. If the location specifies a region, rather than a point, the database may return an UNIMPLEMENTED error code if it does not support query by region.

owner: Option<DeviceOwner>

Depending on device type and regulatory domain, device owner information may be included in an available spectrum request. This allows the device to register and get spectrum-availability information in a single request.

type_: Option<String>

The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...).

Required field.

Trait Implementations

impl Clone for PawsGetSpectrumRequest[src]

impl Debug for PawsGetSpectrumRequest[src]

impl Default for PawsGetSpectrumRequest[src]

impl<'de> Deserialize<'de> for PawsGetSpectrumRequest[src]

impl RequestValue for PawsGetSpectrumRequest[src]

impl Serialize for PawsGetSpectrumRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any