Skip to content

how to unpack [ 146, 0, 203, 66, 120, 167, 66, 234, 244, 144, 0, ] #14

@xxaier

Description

@xxaier

I use https://github.com/kriszyp/msgpackr gen this msgpack

I try use codx-dev/msgpacker unpack
[ 146, 0, 203, 66, 120, 167, 66, 234, 244, 144, 0, ]

I use this code unpack

    #[derive(MsgPacker)]
    pub struct IdLi {
      pub id_li: Vec<u64>,
    }

    pub async fn run(uid: u64, channel_id: String, body: &[u8]) -> Result<()> {
      dbg!(&body);
      let id_li = IdLi::unpack(&body)?.1.id_li;
       dbg!(id_li);
      Ok(())
    }

get UnexpectedFormatTag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions