qbradley opened a new issue, #2859:
URL: https://github.com/apache/fory/issues/2859

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fory/issues) 
and found no similar issues.
   
   
   ### Version
   
   Using fory 0.13.0 from Rust, I tried to serialize the following structure:
   
   ```rust
   #[derive(ForyObject)]
   pub struct Log {
       pub request: String,
       pub code: u16,
       pub size: u64,
   }
   ```
   
   However, I get the following errors:
   
   ```
   error[E0277]: the trait bound `u16: fory::Serializer` is not satisfied
      --> src/datasets/log/mod.rs:267:15
       |
   267 |     pub code: u16,
       |               ^^^ the trait `fory::Serializer` is not implemented for 
`u16`
       |
       = help: the following other types implement trait `fory::Serializer`:
                 f32
                 f64
                 i16
                 i32
                 i64
                 i8
   ```
   
   ### Component(s)
   
   Rust
   
   ### Minimal reproduce step
   
   ```rust
   #[derive(ForyObject)]
   pub struct Log {
       pub size: u64,
   }
   ```
   
   
   ### What did you expect to see?
   
   I expected it to compile
   
   ### What did you see instead?
   
   It failed to compile because ForyDefault is not implemented for u64. It is 
however implemented for i64.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to