pub struct ReviewPrMetadata {Show 15 fields
pub title: String,
pub body: String,
pub state: Option<StateId>,
pub draft: bool,
pub changed_files: u32,
pub additions: u32,
pub deletions: u32,
pub head_sha: String,
pub base_branch: String,
pub head_branch: String,
pub author: Option<ReviewPrAuthor>,
pub labels: Vec<ReviewPrLabel>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub merged_at: Option<Timestamp>,
}Fields§
§title: String§body: String§state: Option<StateId>§draft: bool§changed_files: u32§additions: u32§deletions: u32§head_sha: String§base_branch: String§head_branch: String§labels: Vec<ReviewPrLabel>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>§merged_at: Option<Timestamp>Trait Implementations§
Source§impl Clone for ReviewPrMetadata
impl Clone for ReviewPrMetadata
Source§fn clone(&self) -> ReviewPrMetadata
fn clone(&self) -> ReviewPrMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReviewPrMetadata
impl Debug for ReviewPrMetadata
Source§impl Default for ReviewPrMetadata
impl Default for ReviewPrMetadata
Source§impl Message for ReviewPrMetadata
impl Message for ReviewPrMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ReviewPrMetadata
impl PartialEq for ReviewPrMetadata
impl StructuralPartialEq for ReviewPrMetadata
Auto Trait Implementations§
impl Freeze for ReviewPrMetadata
impl RefUnwindSafe for ReviewPrMetadata
impl Send for ReviewPrMetadata
impl Sync for ReviewPrMetadata
impl Unpin for ReviewPrMetadata
impl UnsafeUnpin for ReviewPrMetadata
impl UnwindSafe for ReviewPrMetadata
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