pub struct PullRequest {Show 15 fields
pub id: u32,
pub state: PullRequestState,
pub title: String,
pub description: String,
pub source: String,
pub target: String,
pub source_sha: String,
pub target_sha: String,
pub url: String,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub author: User,
pub closed_by: Option<User>,
pub reviewers: Option<Vec<User>>,
pub delete_source_branch: bool,
}Fields§
§id: u32§state: PullRequestState§title: String§description: String§source: String§target: String§source_sha: String§target_sha: String§url: String§created_at: OffsetDateTime§updated_at: OffsetDateTime§closed_by: Option<User>§reviewers: Option<Vec<User>>§delete_source_branch: boolImplementations§
Source§impl PullRequest
impl PullRequest
pub fn print(&self, in_browser: bool, formatter_type: FormatterType)
Trait Implementations§
Source§impl Debug for PullRequest
impl Debug for PullRequest
Source§impl<'de> Deserialize<'de> for PullRequest
impl<'de> Deserialize<'de> for PullRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Formatter for PullRequest
impl Formatter for PullRequest
Source§impl From<BitbucketPullRequest> for PullRequest
impl From<BitbucketPullRequest> for PullRequest
Source§fn from(pr: BitbucketPullRequest) -> PullRequest
fn from(pr: BitbucketPullRequest) -> PullRequest
Converts to this type from the input type.
Source§impl From<GitHubPullRequest> for PullRequest
impl From<GitHubPullRequest> for PullRequest
Source§fn from(pr: GitHubPullRequest) -> PullRequest
fn from(pr: GitHubPullRequest) -> PullRequest
Converts to this type from the input type.
Source§impl From<GitLabPullRequest> for PullRequest
impl From<GitLabPullRequest> for PullRequest
Source§fn from(pr: GitLabPullRequest) -> PullRequest
fn from(pr: GitLabPullRequest) -> PullRequest
Converts to this type from the input type.
Source§impl From<GiteaPullRequest> for PullRequest
impl From<GiteaPullRequest> for PullRequest
Source§fn from(pr: GiteaPullRequest) -> PullRequest
fn from(pr: GiteaPullRequest) -> PullRequest
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PullRequest
impl RefUnwindSafe for PullRequest
impl Send for PullRequest
impl Sync for PullRequest
impl Unpin for PullRequest
impl UnwindSafe for PullRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more