(value: &BNVersionInfo)
| 451 | |
| 452 | impl VersionInfo { |
| 453 | pub(crate) fn from_raw(value: &BNVersionInfo) -> Self { |
| 454 | Self { |
| 455 | major: value.major, |
| 456 | minor: value.minor, |
| 457 | build: value.build, |
| 458 | // NOTE: Because of plugin manager the channel might not be filled. |
| 459 | channel: raw_to_string(value.channel).unwrap_or_default(), |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | pub(crate) fn from_owned_raw(value: BNVersionInfo) -> Self { |
| 464 | let owned = Self::from_raw(&value); |
nothing calls this directly
no test coverage detected