Skip to content

Implement Default trait #31

@LimpidCrypto

Description

@LimpidCrypto

Implement the Default for any struct it makes sense. The following example shows how much it makes it easier to define a struct:

let request = AccountInfo {
    account: "r3rhWeE31Jt5sWmi4QiGLMZnY3ENgqw96W",
    ..Default::default()
};

Instead of having to define all fields for AccountInfo the user can just define the account and leave the rest to ..Default::default().

Metadata

Metadata

Assignees

No one assigned

    Labels

    XRPL GrantsThis issue is planned to get resoled as part of the XRPL Grants program (within 8 months)enhancementNew feature or requestnot time dependentIt does not matter when this issue gets resolved

    Projects

    Status

    🔖 Ready

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions