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