pub struct DraftReviewConfig {
pub asset_diff: AssetDiffConfig,
pub approval_required: bool,
}Expand description
Draft review configuration (groups settings that apply during ta draft view).
Fields§
§asset_diff: AssetDiffConfigAsset diff configuration (v0.15.4).
approval_required: boolWhether an explicit ta draft approve step is required before applying (v0.15.14.0).
false(default): single-author flow —ta draft applyacceptsPendingReviewdirectly, auto-approving on apply. No separate approve step needed.true: multi-author flow —ta draft applyrequiresApprovedstate; applying fromPendingReviewerrors with a clear message directing the user to approve first.
[draft]
approval_required = false # set true for multi-author approval workflowsTrait Implementations§
Source§impl Clone for DraftReviewConfig
impl Clone for DraftReviewConfig
Source§fn clone(&self) -> DraftReviewConfig
fn clone(&self) -> DraftReviewConfig
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 DraftReviewConfig
impl Debug for DraftReviewConfig
Source§impl Default for DraftReviewConfig
impl Default for DraftReviewConfig
Source§fn default() -> DraftReviewConfig
fn default() -> DraftReviewConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftReviewConfig
impl<'de> Deserialize<'de> for DraftReviewConfig
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 DraftReviewConfig
impl RefUnwindSafe for DraftReviewConfig
impl Send for DraftReviewConfig
impl Sync for DraftReviewConfig
impl Unpin for DraftReviewConfig
impl UnsafeUnpin for DraftReviewConfig
impl UnwindSafe for DraftReviewConfig
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