diff-struct icon indicating copy to clipboard operation
diff-struct copied to clipboard

Implement Diff for DateTime<Utc>

Open emirror-de opened this issue 1 year ago • 2 comments

Dear Maintainer,

thanks for this nice crate! I do have the following situation:

#[derive(Diff, PartialEq, Eq)]
pub struct ExternalType {
    pub timestamp: Datetime<Utc>,
}

Are there any chances to support structs that contain external types?

Best regards, Lewin

emirror-de avatar Jul 15 '22 18:07 emirror-de

Heya @emirror-de! The way forward here in my opinion is to implement this behind a feature flag. There happens to be an example of this now, with the num crate. Then, whether to add it to the default features is up to opinion

benhall-7 avatar Nov 11 '22 23:11 benhall-7

Ah I see, thanks! I will have a look at this as soon as I have time for it :)

emirror-de avatar Nov 16 '22 08:11 emirror-de