#[non_exhaustive]pub struct CodeImpactInput {Show 21 fields
pub include_lessons: Option<bool>,
pub lesson_namespaces: Option<Vec<String>>,
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 name: Option<String>,
pub symbol_id: Option<String>,
pub depth: Option<Integer>,
pub files: Option<Vec<String>>,
pub diff: Option<String>,
pub exclude_authors: Option<Vec<String>>,
pub summary_only: Option<bool>,
pub per_hop_limit: Option<Integer>,
pub offset: Option<Integer>,
pub pr_number: Option<Integer>,
}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.include_lessons: Option<bool>§lesson_namespaces: Option<Vec<String>>§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>§name: Option<String>§symbol_id: Option<String>§depth: Option<Integer>§files: Option<Vec<String>>§diff: Option<String>§summary_only: Option<bool>§per_hop_limit: Option<Integer>§offset: Option<Integer>§pr_number: Option<Integer>Implementations§
Source§impl CodeImpactInput
impl CodeImpactInput
pub fn new() -> Self
pub fn include_lessons(self, include_lessons: bool) -> Self
pub fn lesson_namespaces( self, lesson_namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> 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 name(self, name: impl Into<String>) -> Self
pub fn symbol_id(self, symbol_id: impl Into<String>) -> Self
pub fn depth(self, depth: impl Into<Integer>) -> Self
pub fn files(self, files: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn diff(self, diff: impl Into<String>) -> Self
pub fn summary_only(self, summary_only: bool) -> Self
pub fn per_hop_limit(self, per_hop_limit: impl Into<Integer>) -> Self
pub fn offset(self, offset: impl Into<Integer>) -> Self
pub fn pr_number(self, pr_number: impl Into<Integer>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeImpactOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeImpactInput
impl Clone for CodeImpactInput
Source§impl Debug for CodeImpactInput
impl Debug for CodeImpactInput
Source§impl Default for CodeImpactInput
impl Default for CodeImpactInput
Source§impl<'de> Deserialize<'de> for CodeImpactInput
impl<'de> Deserialize<'de> for CodeImpactInput
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 CodeImpactInput
impl PartialEq for CodeImpactInput
Source§impl Serialize for CodeImpactInput
impl Serialize for CodeImpactInput
impl StructuralPartialEq for CodeImpactInput
Auto Trait Implementations§
impl Forget for CodeImpactInput
impl Freeze for CodeImpactInput
impl Move for CodeImpactInput
impl RefUnwindSafe for CodeImpactInput
impl Send for CodeImpactInput
impl Sync for CodeImpactInput
impl Unpin for CodeImpactInput
impl UnsafeUnpin for CodeImpactInput
impl UnwindSafe for CodeImpactInput
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