Retrieve the schema name if [`Self::Partial]` or [`Self::`Full`], `None` otherwise.
(&self)
| 173 | /// Retrieve the schema name if [`Self::Partial]` or [`Self::`Full`], |
| 174 | /// `None` otherwise. |
| 175 | pub fn schema(&self) -> Option<&str> { |
| 176 | match self { |
| 177 | Self::Full { schema, .. } | Self::Partial { schema, .. } => Some(schema), |
| 178 | _ => None, |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | /// Retrieve the catalog name if [`Self::Full`], `None` otherwise. |
| 183 | pub fn catalog(&self) -> Option<&str> { |