pub struct ScannerRegistrationReq {
pub name: String,
pub description: Option<String>,
pub url: String,
pub auth: Option<String>,
pub access_credential: Option<String>,
pub skip_cert_verify: Option<bool>,
pub use_internal_addr: Option<bool>,
pub disabled: Option<bool>,
}Fields§
§name: StringThe name of this registration
description: Option<String>An optional description of this registration.
url: StringA base URL of the scanner adapter.
auth: Option<String>Specify what authentication approach is adopted for the HTTP communications. Supported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"
access_credential: Option<String>An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.
skip_cert_verify: Option<bool>Indicate if skip the certificate verification when sending HTTP requests
use_internal_addr: Option<bool>Indicate whether use internal registry addr for the scanner to pull content or not
disabled: Option<bool>Indicate whether the registration is enabled or not
Implementations§
Source§impl ScannerRegistrationReq
impl ScannerRegistrationReq
pub fn new(name: String, url: String) -> ScannerRegistrationReq
Trait Implementations§
Source§impl Clone for ScannerRegistrationReq
impl Clone for ScannerRegistrationReq
Source§fn clone(&self) -> ScannerRegistrationReq
fn clone(&self) -> ScannerRegistrationReq
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScannerRegistrationReq
impl Debug for ScannerRegistrationReq
Source§impl Default for ScannerRegistrationReq
impl Default for ScannerRegistrationReq
Source§fn default() -> ScannerRegistrationReq
fn default() -> ScannerRegistrationReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScannerRegistrationReq
impl<'de> Deserialize<'de> for ScannerRegistrationReq
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 ScannerRegistrationReq
impl PartialEq for ScannerRegistrationReq
Source§fn eq(&self, other: &ScannerRegistrationReq) -> bool
fn eq(&self, other: &ScannerRegistrationReq) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScannerRegistrationReq
impl Serialize for ScannerRegistrationReq
impl StructuralPartialEq for ScannerRegistrationReq
Auto Trait Implementations§
impl Freeze for ScannerRegistrationReq
impl RefUnwindSafe for ScannerRegistrationReq
impl Send for ScannerRegistrationReq
impl Sync for ScannerRegistrationReq
impl Unpin for ScannerRegistrationReq
impl UnsafeUnpin for ScannerRegistrationReq
impl UnwindSafe for ScannerRegistrationReq
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