{"id":20173059,"url":"https://github.com/ohmycloud/design-pattern-in-rust","last_synced_at":"2026-05-31T01:31:21.272Z","repository":{"id":261224563,"uuid":"883474677","full_name":"ohmycloud/design-pattern-in-rust","owner":"ohmycloud","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-05T11:01:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T12:34:42.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohmycloud.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T02:56:47.000Z","updated_at":"2024-11-05T11:01:57.000Z","dependencies_parsed_at":"2024-11-05T12:44:59.673Z","dependency_job_id":null,"html_url":"https://github.com/ohmycloud/design-pattern-in-rust","commit_stats":null,"previous_names":["ohmycloud/design-pattern-in-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Fdesign-pattern-in-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Fdesign-pattern-in-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Fdesign-pattern-in-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Fdesign-pattern-in-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohmycloud","download_url":"https://codeload.github.com/ohmycloud/design-pattern-in-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224552103,"owners_count":17330237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T01:33:20.288Z","updated_at":"2026-05-31T01:31:21.266Z","avatar_url":"https://github.com/ohmycloud.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Design Patterns in Rust\r\n\r\nhttps://siddharthqs.com/design-patterns-in-rust\r\n\r\n## Strategy pattern Class Diagram\r\n\r\n```markdown\r\n+-----------------------------------------------------------------+\r\n| \u003c\u003cinterface\u003e\u003e                                                   |\r\n| ExecutionStrategy                                               |\r\n|-----------------------------------------------------------------|\r\n| + execute_order(...)                                            |\r\n+-----------------------------------------------------------------+\r\n\r\n     /|\\                  /|\\                   /|\\\r\n      |                    |                     |\r\n      |                    |                     |\r\n+---------------+     +--------------+       +--------------+\r\n| TwapStrategy  |     | VwapStrategy |       | PovStrategy  |\r\n|---------------|     |--------------|       |--------------|\r\n|               |     |              |       | - participation_rate: f64 |\r\n|---------------|     |--------------|       |--------------|\r\n| + execute_order(...)|+ execute_order(...)  |+ execute_order(...)|\r\n+---------------+     +--------------+       +--------------+\r\n\r\n+-----------------------------+\r\n| OrderExecutor               |\r\n|-----------------------------|\r\n| - strategy: ExecutionStrategy |\r\n|-----------------------------|\r\n| + new(strategy)             |\r\n| + set_strategy(strategy)    |\r\n| + execute(order_id, quantity) |\r\n+-----------------------------+\r\n\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmycloud%2Fdesign-pattern-in-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmycloud%2Fdesign-pattern-in-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmycloud%2Fdesign-pattern-in-rust/lists"}