pub enum StoryAreaType {
Location {
latitude: f64,
longitude: f64,
address: Option<LocationAddress>,
},
SuggestedReaction {
reaction_type: ReactionType,
is_dark: Option<bool>,
is_flipped: Option<bool>,
},
Link {
url: String,
},
Weather {
temperature: f64,
emoji: String,
background_color: i32,
},
UniqueGift {
name: String,
},
}Expand description
The type of interactive area overlaid on a story.
Variants§
Location
An area pointing to a geographic location.
Fields
§
address: Option<LocationAddress>Optional human-readable address.
SuggestedReaction
An area for a suggested emoji reaction.
Fields
§
reaction_type: ReactionTypeThe reaction type.
Link
An area that links to a URL.
Weather
An area showing weather information.
Fields
UniqueGift
An area highlighting a unique gift.
Trait Implementations§
Source§impl Clone for StoryAreaType
impl Clone for StoryAreaType
Source§fn clone(&self) -> StoryAreaType
fn clone(&self) -> StoryAreaType
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 StoryAreaType
impl Debug for StoryAreaType
Source§impl<'de> Deserialize<'de> for StoryAreaType
impl<'de> Deserialize<'de> for StoryAreaType
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
Auto Trait Implementations§
impl Freeze for StoryAreaType
impl RefUnwindSafe for StoryAreaType
impl Send for StoryAreaType
impl Sync for StoryAreaType
impl Unpin for StoryAreaType
impl UnsafeUnpin for StoryAreaType
impl UnwindSafe for StoryAreaType
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