umya_spreadsheet/structs/
hyperlink.rs

1#[derive(Clone, Default, Debug, Eq, Ord, PartialEq, PartialOrd)]
2pub struct Hyperlink {
3    url: Box<str>,
4    tooltip: Box<str>,
5    location: bool,
6}
7impl Hyperlink {
8    #[inline]
9    pub fn get_url(&self) -> &str {
10        &self.url
11    }
12
13    #[inline]
14    pub fn set_url<S: Into<String>>(&mut self, value: S) -> &mut Hyperlink {
15        self.url = value.into().into_boxed_str();
16        self
17    }
18
19    #[inline]
20    pub fn get_tooltip(&self) -> &str {
21        &self.tooltip
22    }
23
24    #[inline]
25    pub fn set_tooltip<S: Into<String>>(&mut self, value: S) -> &mut Hyperlink {
26        self.tooltip = value.into().into_boxed_str();
27        self
28    }
29
30    #[inline]
31    pub fn get_location(&self) -> &bool {
32        &self.location
33    }
34
35    #[inline]
36    pub fn set_location(&mut self, value: bool) -> &mut Hyperlink {
37        self.location = value;
38        self
39    }
40}