pub fn subnet_id_try_from_protobuf(value: pb::SubnetId) -> Result<SubnetId, ProxyDecodeError> {
    let principal_id = PrincipalId::try_from(
        value
            .principal_id
            .ok_or(ProxyDecodeError::MissingField("SubnetId::principal_id"))?,
    )?;
    Ok(SubnetId::from(principal_id))
}
/// From its protobuf definition convert to a SubnetId.  Normally, we would
/// use `impl TryFrom<pb::SubnetId> for SubnetId` here however we cannot as
/// both `Id` and `pb::SubnetId` are defined in other crates.
From its protobuf definition convert to a SubnetId.
From its protobuf definition convert to a SubnetId .
pub fn subnet_id_try_from_protobuf(value: pb::SubnetId) -> Result<SubnetId, ProxyDecodeError> {
    let principal_id = PrincipalId::try_from(
        value
            .principal_id
            .ok_or(ProxyDecodeError::MissingField("SubnetId::principal_id"))?,
    )?;
    Ok(SubnetId::from(principal_id))
}
pub fn subnet_id_try_from_protobuf ( value : pb :: SubnetId ) -> Result < SubnetId , ProxyDecodeError > { let principal_id = PrincipalId :: try_from ( value . principal_id . ok_or ( ProxyDecodeError :: MissingField ( " " ) ) ? , ) ? ; Ok ( SubnetId :: from ( principal_id ) ) }
From its protobuf definition convert to a SubnetId.
From its protobuf definition convert to a SubnetId .
value
pb::SubnetId
value
pb::SubnetId