fn try_from(variant_candidate: &String) -> Result<Self, Self::Error> {
    match variant_candidate.as_ref() {
      "darwin" => Ok(Platform::Darwin),
      "linux" => Ok(Platform::Linux),
      "none" => Ok(Platform::None),
      other => Err(format!(
        "Unknown, platform {:?} encountered in parsing",
        other
      )),
    }
  }
///
/// This is a helper method to convert values from the python/engine/platform.py::Platform enum,
/// which have been serialized, into the rust Platform enum.
///
This is a helper method to convert values from the python/engine/platform.py::Platform enum,
which have been serialized, into the rust Platform enum.
This is a helper method to convert values from the python / engine / platform . py :: Platform enum which have been serialized into the rust Platform enum .
fn try_from(variant_candidate: &String) -> Result<Self, Self::Error> {
    match variant_candidate.as_ref() {
      "darwin" => Ok(Platform::Darwin),
      "linux" => Ok(Platform::Linux),
      "none" => Ok(Platform::None),
      other => Err(format!(
        "Unknown, platform {:?} encountered in parsing",
        other
      )),
    }
  }
fn try_from ( variant_candidate : & String ) -> Result < Self , Self :: Error > { match variant_candidate . as_ref ( ) { " " => Ok ( Platform :: Darwin ) , " " => Ok ( Platform :: Linux ) , " " => Ok ( Platform :: None ) , other => Err ( format ! ( " " other ) ) , } }
This is a helper method to convert values from the python/engine/platform.py::Platform enum,
which have been serialized, into the rust Platform enum.
This is a helper method to convert values from the python / engine / platform . py :: Platform enum which have been serialized into the rust Platform enum .
variant_candidate
&String
variant_candidate
&String