soma_gateway/gateway/code_mode/host.rs
1#[derive(Debug, Clone, Default, PartialEq, Eq)]
2pub struct GatewayCodeModeHost {
3 ui_links: Vec<String>,
4}
5
6impl GatewayCodeModeHost {
7 pub fn capture_ui_link(&mut self, href: impl Into<String>) {
8 self.ui_links.push(href.into());
9 }
10
11 #[must_use]
12 pub fn ui_links(&self) -> &[String] {
13 &self.ui_links
14 }
15}
16
17#[cfg(test)]
18#[path = "host_tests.rs"]
19mod tests;