Returns the format of this schema.
(&self)
| 271 | |
| 272 | /// Returns the format of this schema. |
| 273 | pub fn format(&self) -> &str { |
| 274 | assert!(!self.format.is_null()); |
| 275 | // safe because the lifetime of `self.format` equals `self` |
| 276 | unsafe { CStr::from_ptr(self.format) } |
| 277 | .to_str() |
| 278 | .expect("The external API has a non-utf8 as format") |
| 279 | } |
| 280 | |
| 281 | /// Returns the name of this schema. |
| 282 | pub fn name(&self) -> Option<&str> { |
no outgoing calls
no test coverage detected