tbot/contexts/location.rs
1use crate::{contexts::fields, types};
2
3media_message! {
4 struct Location {
5 /// The location.
6 location: types::Location,
7 } -> EventLoop::location
8
9 fn new() -> Self {
10 Self { }
11 }
12}
13
14impl fields::Location for Location {
15 #[must_use]
16 fn location(&self) -> &types::Location {
17 &self.location
18 }
19}