This repository was archived by the owner on Nov 6, 2025. It is now read-only.
Issue <--> GitHubIssue 간 변환 함수 구현 #191
Closed
JonghoKim-jj
started this conversation in
General
Replies: 2 comments 1 reply
|
변환함수는 확실한 사용처가 생길 때 구현하면 좋을 것 같습니다.
p.s. 현재 |
1 reply
|
완료되어 닫습니다. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
현재 GitHub GraphQL API 에서 요청하여 받은 결과는
GitHubIssue로 변환된 후 sled DB 에 저장되는 것으로 알고 있습니다.Database::insert_issues()를 통해 삽입할 때는GitHubIssue구조체를 넣는데,Database::issues()를 통해 이슈를 조회할 때는Issue구조체를 받습니다.impl From<Issue> for GitHubIssue및Issue::from(owner: &str, repo: &str, github_issue: GitHubIssue)를 구현한다면 테스트 코드 등에서 편하게 쓸 수 있을 것 같습니다.All reactions