{"id":22248679,"url":"https://github.com/ohmycloud/rust-design-pattern","last_synced_at":"2025-08-04T07:10:56.579Z","repository":{"id":265899717,"uuid":"892988350","full_name":"ohmycloud/rust-design-pattern","owner":"ohmycloud","description":"rust design pattern","archived":false,"fork":false,"pushed_at":"2024-11-23T08:48:02.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T04:13:53.130Z","etag":null,"topics":["design-patterns"],"latest_commit_sha":null,"homepage":"","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-23T08:25:51.000Z","updated_at":"2025-05-05T13:01:11.000Z","dependencies_parsed_at":"2024-12-01T12:56:40.858Z","dependency_job_id":null,"html_url":"https://github.com/ohmycloud/rust-design-pattern","commit_stats":null,"previous_names":["ohmycloud/rust-design-pattern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ohmycloud/rust-design-pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Frust-design-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Frust-design-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Frust-design-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Frust-design-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohmycloud","download_url":"https://codeload.github.com/ohmycloud/rust-design-pattern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmycloud%2Frust-design-pattern/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268660156,"owners_count":24286028,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["design-patterns"],"created_at":"2024-12-03T06:17:35.666Z","updated_at":"2025-08-04T07:10:56.547Z","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%2Frust-design-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmycloud%2Frust-design-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmycloud%2Frust-design-pattern/lists"}