#[non_exhaustive]pub struct CodeReviewBriefInput {Show 16 fields
pub pr_files: Option<HashMap<String, String>>,
pub pr_diff: Option<String>,
pub pr_head_sha: Option<String>,
pub pr_base_sha: Option<String>,
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub consumer: Option<String>,
pub pr_number: Option<Integer>,
pub merge_sha: Option<String>,
pub sections: Option<Vec<CodeReviewBriefInputSectionsItem>>,
pub tier: Option<CodeReviewBriefInputTier>,
pub token_budget: Option<Integer>,
pub store: Option<bool>,
pub open: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pr_files: Option<HashMap<String, String>>§pr_diff: Option<String>§pr_head_sha: Option<String>§pr_base_sha: Option<String>§org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§consumer: Option<String>§pr_number: Option<Integer>§merge_sha: Option<String>§sections: Option<Vec<CodeReviewBriefInputSectionsItem>>§tier: Option<CodeReviewBriefInputTier>§token_budget: Option<Integer>§store: Option<bool>§open: Option<bool>Implementations§
Source§impl CodeReviewBriefInput
impl CodeReviewBriefInput
pub fn new() -> Self
pub fn pr_files(self, pr_files: HashMap<String, String>) -> Self
pub fn pr_diff(self, pr_diff: impl Into<String>) -> Self
pub fn pr_head_sha(self, pr_head_sha: impl Into<String>) -> Self
pub fn pr_base_sha(self, pr_base_sha: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn consumer(self, consumer: impl Into<String>) -> Self
pub fn pr_number(self, pr_number: impl Into<Integer>) -> Self
pub fn merge_sha(self, merge_sha: impl Into<String>) -> Self
pub fn sections(self, sections: Vec<CodeReviewBriefInputSectionsItem>) -> Self
pub fn tier(self, tier: CodeReviewBriefInputTier) -> Self
pub fn token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn store(self, store: bool) -> Self
pub fn open(self, open: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeReviewBriefOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeReviewBriefInput
impl Clone for CodeReviewBriefInput
Source§impl Debug for CodeReviewBriefInput
impl Debug for CodeReviewBriefInput
Source§impl Default for CodeReviewBriefInput
impl Default for CodeReviewBriefInput
Source§impl<'de> Deserialize<'de> for CodeReviewBriefInput
impl<'de> Deserialize<'de> for CodeReviewBriefInput
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 PartialEq for CodeReviewBriefInput
impl PartialEq for CodeReviewBriefInput
Source§impl Serialize for CodeReviewBriefInput
impl Serialize for CodeReviewBriefInput
impl StructuralPartialEq for CodeReviewBriefInput
Auto Trait Implementations§
impl Forget for CodeReviewBriefInput
impl Freeze for CodeReviewBriefInput
impl Move for CodeReviewBriefInput
impl RefUnwindSafe for CodeReviewBriefInput
impl Send for CodeReviewBriefInput
impl Sync for CodeReviewBriefInput
impl Unpin for CodeReviewBriefInput
impl UnsafeUnpin for CodeReviewBriefInput
impl UnwindSafe for CodeReviewBriefInput
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