/// Parse join group response for generation-id
Parse join group response for generation-id
Parse join group response for generation - id
fn join_group_to_generation_id(join_group_resp: &KfJoinGroupResponse) -> Result<i32, CliError> {
    if join_group_resp.error_code != KfErrorCode::None {
        return Err(CliError::IoError(IoError::new(
            ErrorKind::InvalidData,
            format!("join group: {}", join_group_resp.error_code.to_sentence()),
        )));
    }
    debug!("generation-id: '{}'", join_group_resp.generation_id);
    Ok(join_group_resp.generation_id)
}
fn join_group_to_generation_id ( join_group_resp : & KfJoinGroupResponse ) -> Result < i32 , CliError > { if join_group_resp . error_code != KfErrorCode :: None { return Err ( CliError :: IoError ( IoError :: new ( ErrorKind :: InvalidData , format ! ( " " join_group_resp error_code to_sentence ( ) ) , ) ) ) ; } debug ! ( " " join_group_resp generation_id ) ; Ok ( join_group_resp . generation_id ) }
Parse join group response for generation-id
Parse join group response for generation - id
join_group_resp
&KfJoinGroupResponse