pub struct UpdateSource {Show 20 fields
pub enabled: bool,
pub name: String,
pub password: Option<String>,
pub pattern: Option<String>,
pub private_key: Option<String>,
pub ca_cert: Option<String>,
pub ssl_ignore_errors: bool,
pub proxy: Option<String>,
pub uri: String,
pub username: Option<String>,
pub headers: Vec<EnvironmentVariable>,
pub default_classification: ClassificationString,
pub use_managed_identity: bool,
pub git_branch: Option<String>,
pub sync: bool,
pub fetch_method: FetchMethods,
pub override_classification: bool,
pub configuration: HashMap<String, Value>,
pub data: Option<Text>,
pub ignore_cache: bool,
/* private fields */
}Expand description
Update Source Configuration
Fields§
§enabled: boolIs this source active for periodic fetching?
name: StringName of source
password: Option<String>Password used to authenticate with source
pattern: Option<String>Pattern used to find files of interest from source
private_key: Option<String>Private key used to authenticate with source
ca_cert: Option<String>CA cert for source
ssl_ignore_errors: boolIgnore SSL errors when reaching out to source?
proxy: Option<String>Proxy server for source
uri: StringURI to source
username: Option<String>Username used to authenticate with source
headers: Vec<EnvironmentVariable>Headers
default_classification: ClassificationStringDefault classification used in absence of one defined in files from source
use_managed_identity: boolUse managed identity for authentication with Azure DevOps
git_branch: Option<String>Branch to checkout from Git repository.
sync: boolSynchronize signatures with remote source. Allows system to auto-disable signatures no longer found in source.
fetch_method: FetchMethodsFetch method to be used with source
override_classification: boolShould the source’s classfication override the signature’s self-defined classification, if any?
configuration: HashMap<String, Value>Processing configuration for source
data: Option<Text>Data that’s sent in a POST request (fetch_method="POST")
ignore_cache: boolIgnore source caching and forcefully fetch from source
Trait Implementations§
Source§impl Clone for UpdateSource
impl Clone for UpdateSource
Source§fn clone(&self) -> UpdateSource
fn clone(&self) -> UpdateSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateSource
impl Debug for UpdateSource
Source§impl Described<ElasticMeta> for UpdateSource
impl Described<ElasticMeta> for UpdateSource
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Source§impl<'de> Deserialize<'de> for UpdateSource
impl<'de> Deserialize<'de> for UpdateSource
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>,
Source§impl PartialEq for UpdateSource
impl PartialEq for UpdateSource
Source§impl Serialize for UpdateSource
impl Serialize for UpdateSource
impl Eq for UpdateSource
impl StructuralPartialEq for UpdateSource
Auto Trait Implementations§
impl Freeze for UpdateSource
impl RefUnwindSafe for UpdateSource
impl Send for UpdateSource
impl Sync for UpdateSource
impl Unpin for UpdateSource
impl UnwindSafe for UpdateSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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