[−][src]Struct google_playablelocations3::GoogleMapsPlayablelocationsV3SampleSpacingOptions
A set of options that specifies the separation between playable locations.
This type is not used in any activity, and only used as part of another schema.
Fields
min_spacing_meters: Option<f64>
Required. The minimum spacing between any two playable locations, measured in meters. The minimum value is 30. The maximum value is 1000.
Inputs will be rounded up to the next 10 meter interval.
The default value is 200m.
Set this field to remove tight clusters of playable locations.
Note:
The spacing is a greedy algorithm. It optimizes for selecting the highest ranking locations first, not to maximize the number of locations selected. Consider the following scenario:
- Rank: A: 2, B: 1, C: 3.
- Distance: A--200m--B--200m--C
If spacing=250, it will pick the highest ranked location [B], not [A, C].
Note:
Spacing works within the game object type itself, as well as the previous ones. Suppose three game object types, each with the following spacing:
- X: 400m, Y: undefined, Z: 200m.
- Add locations for X, within 400m of each other.
- Add locations for Y, without any spacing.
- Finally, add locations for Z within 200m of each other as well X and Y.
The distance diagram between those locations end up as:
- From->To.
- X->X: 400m
- Y->X, Y->Y: unspecified.
- Z->X, Z->Y, Z->Z: 200m.
point_type: Option<String>
Specifies whether the minimum spacing constraint applies to the
center-point or to the snapped point of playable locations. The default
value is CENTER_POINT
.
If a snapped point is not available for a playable location, its center-point is used instead.
Set this to the point type used in your game.
Trait Implementations
impl Clone for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
fn clone(&self) -> GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
impl Default for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
impl<'de> Deserialize<'de> for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
impl Serialize for GoogleMapsPlayablelocationsV3SampleSpacingOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for GoogleMapsPlayablelocationsV3SampleSpacingOptions
impl Send for GoogleMapsPlayablelocationsV3SampleSpacingOptions
impl Sync for GoogleMapsPlayablelocationsV3SampleSpacingOptions
impl Unpin for GoogleMapsPlayablelocationsV3SampleSpacingOptions
impl UnwindSafe for GoogleMapsPlayablelocationsV3SampleSpacingOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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> Typeable for T where
T: Any,
T: Any,