pub struct PrUpdateOptions {
pub title: Option<String>,
pub body: Option<String>,
pub state: Option<PrStatus>,
pub draft: Option<bool>,
}Expand description
PR update options
Fields§
§title: Option<String>New title (optional)
body: Option<String>New body (optional)
state: Option<PrStatus>New state (optional)
draft: Option<bool>Draft status (optional)
Implementations§
Source§impl PrUpdateOptions
impl PrUpdateOptions
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set title
Sourcepub fn with_state(self, state: PrStatus) -> Self
pub fn with_state(self, state: PrStatus) -> Self
Set state
Sourcepub fn with_draft(self, draft: bool) -> Self
pub fn with_draft(self, draft: bool) -> Self
Set draft status
Sourcepub fn has_updates(&self) -> bool
pub fn has_updates(&self) -> bool
Check if any updates are specified
Trait Implementations§
Source§impl Clone for PrUpdateOptions
impl Clone for PrUpdateOptions
Source§fn clone(&self) -> PrUpdateOptions
fn clone(&self) -> PrUpdateOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 PrUpdateOptions
impl Debug for PrUpdateOptions
Source§impl Default for PrUpdateOptions
impl Default for PrUpdateOptions
Source§fn default() -> PrUpdateOptions
fn default() -> PrUpdateOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrUpdateOptions
impl<'de> Deserialize<'de> for PrUpdateOptions
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
Auto Trait Implementations§
impl Freeze for PrUpdateOptions
impl RefUnwindSafe for PrUpdateOptions
impl Send for PrUpdateOptions
impl Sync for PrUpdateOptions
impl Unpin for PrUpdateOptions
impl UnwindSafe for PrUpdateOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more