-
Notifications
You must be signed in to change notification settings - Fork 3
chore: rename type_
fields
#318
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
base: sdk-bindings
Are you sure you want to change the base?
Conversation
pub sending_module: Option<MoveModuleQuery>, | ||
pub sender: Option<GQLAddress>, | ||
// TODO thibault | ||
pub type_: MoveType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this one not need a #[cynic(rename = "type")]
?
serde(with = "::serde_with::As::<serialization::BinaryMoveStructType>") | ||
)] | ||
pub type_: StructTag, | ||
pub type_tag: StructTag, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be named struct_tag
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say so
pub struct ObjectFilter { | ||
#[cynic(rename = "type")] | ||
pub type_: Option<String>, | ||
pub type_tag: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually called "type_filter" in the monorepo because the field is a TypeFilter
enum. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be preferable
pub name: String, | ||
#[cynic(rename = "type")] | ||
pub type_: Option<OpenMoveType>, | ||
pub type_tag: Option<OpenMoveType>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub type_tag: Option<OpenMoveType>, | |
pub open_move_type: Option<OpenMoveType>, |
?
No description provided.