Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CasObject serde::Serializable #172

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Make CasObject serde::Serializable #172

merged 2 commits into from
Feb 17, 2025

Conversation

znation
Copy link
Collaborator

@znation znation commented Feb 14, 2025

See title -- should be self-explanatory.

@znation znation force-pushed the zn/pr-serialize-casobject branch from 2d82100 to 29e5ff2 Compare February 14, 2025 10:03
@@ -19,7 +20,7 @@ pub(crate) const CAS_OBJECT_FORMAT_IDENT: CasObjectIdent = [b'X', b'E', b'T', b'
pub(crate) const CAS_OBJECT_FORMAT_VERSION: u8 = 0;
const CAS_OBJECT_INFO_DEFAULT_LENGTH: u32 = 60;

#[derive(Clone, PartialEq, Eq, Debug)]
#[derive(Clone, PartialEq, Eq, Debug, Serialize)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought, you may want to #[serde(skip)] the _buffer: [u8; 16] field.

@znation znation merged commit d06daff into main Feb 17, 2025
2 checks passed
@znation znation deleted the zn/pr-serialize-casobject branch February 17, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants