/// Reads the initial contents of the governance protobuf from a file.
Reads the initial contents of the governance protobuf from a file.
Reads the initial contents of the governance protobuf from a file .
fn read_governance_pb_from_file(file_path: &Path) -> Result<GovernanceProto, String> {
    let bytes = fs::read(file_path).expect("Couldn't read governance protobuf file.");
    GovernanceProto::decode(&bytes[..])
        .map_err(|err| format!("Error decoding governance protobuf file: {:?}", err))
}
fn read_governance_pb_from_file ( file_path : & Path ) -> Result < GovernanceProto , String > { let bytes = fs :: read ( file_path ) . expect ( " " ) ; GovernanceProto :: decode ( & bytes [ .. ] ) . map_err ( | err | format ! ( " " err ) ) }
Reads the initial contents of the governance protobuf from a file.
Reads the initial contents of the governance protobuf from a file .
file_path
&Path