pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UNSPECIFIED_STAKE_BALANCE_OPERATION" => {
                Some(Self::UnspecifiedStakeBalanceOperation)
            }
            "STAKE" => Some(Self::Stake),
            "UNSTAKE" => Some(Self::Unstake),
            "SLASH" => Some(Self::Slash),
            "BID" => Some(Self::Bid),
            _ => None,
        }
    }
Creates an enum from field names used in the ProtoBuf definition.
crates/sdk/src/network/proto/network.rs