Skip to main content

Module models

Module models 

Source

Structs§

BranchName
BranchRef
BuildStatus
One entry from …/pullrequests/{id}/statuses. Every field is optional because a reporter may omit any of them, and a missing name must not cost us the row.
CloneLink
One entry of links.clone[], which Bitbucket returns as a list tagged by protocol rather than as named fields.
Comment
CommentContent
CommentParent
Commit
CommitAuthor
CommitSummary
CommitTarget
DiffStatEntry
Endpoint
Inline
Link
Links
Participant
PathEntry
Project
A Bitbucket project, the container a repository lives in.
PullRequest
Repository
A repository as returned by GET /repositories/{workspace} and by the creation endpoint. full_name is "workspace/repo", which RepoSlug::parse accepts directly.
RepositoryLinks
ReviewerRef
ReviewerState
User

Enums§

BuildState
A pull request can carry one status per reporting tool, so the table needs a single word. None covers both “no checks reported” and “a state this version does not recognise” — an unknown future state must never fail a list.
ReviewState