Struct cobble_core::minecraft::models::LibraryNatives
source · pub struct LibraryNatives {
pub linux: Option<String>,
pub windows: Option<String>,
pub osx: Option<String>,
}
Expand description
Information about available native library.
Fields§
§linux: Option<String>
Linux native name.
windows: Option<String>
Windows native name.
osx: Option<String>
MacOs native name
Implementations§
source§impl LibraryNatives
impl LibraryNatives
sourcepub fn get_for_current_platform(&self) -> Option<String>
pub fn get_for_current_platform(&self) -> Option<String>
Gets the current platforms native.
Returns none when the platform is not supported/implemented. Currently linux, windows and macos are supported.
Trait Implementations§
source§impl Clone for LibraryNatives
impl Clone for LibraryNatives
source§fn clone(&self) -> LibraryNatives
fn clone(&self) -> LibraryNatives
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LibraryNatives
impl Debug for LibraryNatives
source§impl<'de> Deserialize<'de> for LibraryNatives
impl<'de> Deserialize<'de> for LibraryNatives
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more