Skip to content

Conversation

@khvn26
Copy link
Member

@khvn26 khvn26 commented Oct 3, 2024

Closes #22, Flagsmith/flagsmith-rust-flag-engine#14.

This introduces the models::SDKTrait struct to be used in lieu of flagsmith_flag_engine::identities::Trait when calling get_identity_flags, and a new transient argument to get_identity_flags.

The SDKTrait struct offers two constructors:

  • SDKTrait::new that generates a non-transient trait, analogous to flagsmith_flag_engine::identities::Trait.
  • SDKTrait::new_with_transient accepting a third transient boolean argument.

@khvn26 khvn26 changed the title feat: Support transient identities and traits feat!: Support transient identities and traits Oct 3, 2024
Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

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

Approved with a minor nit.

Co-authored-by: Matthew Elwell <[email protected]>
@khvn26 khvn26 merged commit bd12c19 into main Oct 3, 2024
1 check passed
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.

Support transient identities and traits

3 participants