#[non_exhaustive]pub struct CodeRepoAddInput {
pub org: Option<String>,
pub repo: String,
pub branch: Option<String>,
pub join_policy: Option<CodeRepoAddInputJoinPolicy>,
pub classification: Option<CodeRepoAddInputClassification>,
pub access_token: Option<String>,
pub git_proxy_identity: Option<String>,
pub path_prefixes: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub exclude_generated: Option<bool>,
pub scip_producer: Option<CodeRepoAddInputScipProducer>,
pub branches: Option<Vec<String>>,
}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.org: Option<String>§repo: String§branch: Option<String>§join_policy: Option<CodeRepoAddInputJoinPolicy>§classification: Option<CodeRepoAddInputClassification>§access_token: Option<String>§git_proxy_identity: Option<String>§path_prefixes: Option<Vec<String>>§exclude: Option<Vec<String>>§exclude_generated: Option<bool>§scip_producer: Option<CodeRepoAddInputScipProducer>§branches: Option<Vec<String>>Implementations§
Source§impl CodeRepoAddInput
impl CodeRepoAddInput
pub fn new(repo: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn branch(self, branch: impl Into<String>) -> Self
pub fn join_policy(self, join_policy: CodeRepoAddInputJoinPolicy) -> Self
pub fn classification( self, classification: CodeRepoAddInputClassification, ) -> Self
pub fn access_token(self, access_token: impl Into<String>) -> Self
pub fn git_proxy_identity(self, git_proxy_identity: impl Into<String>) -> Self
pub fn path_prefixes( self, path_prefixes: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn exclude( self, exclude: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn exclude_generated(self, exclude_generated: bool) -> Self
pub fn scip_producer(self, scip_producer: CodeRepoAddInputScipProducer) -> Self
pub fn branches( self, branches: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeRepoAddOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeRepoAddInput
impl Clone for CodeRepoAddInput
Source§impl Debug for CodeRepoAddInput
impl Debug for CodeRepoAddInput
Source§impl<'de> Deserialize<'de> for CodeRepoAddInput
impl<'de> Deserialize<'de> for CodeRepoAddInput
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 CodeRepoAddInput
impl PartialEq for CodeRepoAddInput
Source§impl Serialize for CodeRepoAddInput
impl Serialize for CodeRepoAddInput
impl StructuralPartialEq for CodeRepoAddInput
Auto Trait Implementations§
impl Forget for CodeRepoAddInput
impl Freeze for CodeRepoAddInput
impl Move for CodeRepoAddInput
impl RefUnwindSafe for CodeRepoAddInput
impl Send for CodeRepoAddInput
impl Sync for CodeRepoAddInput
impl Unpin for CodeRepoAddInput
impl UnsafeUnpin for CodeRepoAddInput
impl UnwindSafe for CodeRepoAddInput
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