[−][src]Struct google_proximitybeacon1_beta1::BeaconAttachment
Project-specific data associated with a beacon.
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).
- attachments create beacons (request|response)
Fields
max_distance_meters: Option<f64>
The distance away from the beacon at which this attachment should be delivered to a mobile app.
Setting this to a value greater than zero indicates that the app should behave as if the beacon is "seen" when the mobile device is less than this distance away from the beacon.
Different attachments on the same beacon can have different max distances.
Note that even though this value is expressed with fractional meter precision, real-world behavior is likley to be much less precise than one meter, due to the nature of current Bluetooth radio technology.
Optional. When not set or zero, the attachment should be delivered at the beacon's outer limit of detection.
Negative values are invalid and return an error.
attachment_name: Option<String>
Resource name of this attachment. Attachment names have the format:
beacons/beacon_id/attachments/attachment_id
.
Leave this empty on creation.
creation_time_ms: Option<String>
The UTC time when this attachment was created, in milliseconds since the UNIX epoch.
data: Option<String>
An opaque data container for client-provided data. Must be base64 encoded in HTTP requests, and will be so encoded (with padding) in responses. Required.
namespaced_type: Option<String>
Specifies what kind of attachment this is. Tells a client how to
interpret the data
field. Format is namespace/type. Namespace
provides type separation between clients. Type describes the type of
data
, for use by the client when parsing the data
field.
Required.
Trait Implementations
impl ResponseResult for BeaconAttachment
[src]
impl RequestValue for BeaconAttachment
[src]
impl Default for BeaconAttachment
[src]
fn default() -> BeaconAttachment
[src]
impl Clone for BeaconAttachment
[src]
fn clone(&self) -> BeaconAttachment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BeaconAttachment
[src]
impl Serialize for BeaconAttachment
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for BeaconAttachment
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for BeaconAttachment
impl Unpin for BeaconAttachment
impl Sync for BeaconAttachment
impl UnwindSafe for BeaconAttachment
impl RefUnwindSafe for BeaconAttachment
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,