pub struct HttpsTransportConfig {
pub base_url: String,
pub timeout: Duration,
pub connect_timeout: Duration,
pub bearer_token: Option<String>,
}Expand description
Configuration for HttpsTransport.
Fields§
§base_url: StringBase URL of the registry, e.g. https://registry.example.com — the
transport POSTs to <base>/trust-tasks.
timeout: DurationEnd-to-end request timeout.
connect_timeout: DurationConnection-establishment timeout.
bearer_token: Option<String>Optional bearer token (Authorization: Bearer <token>).
Implementations§
Trait Implementations§
Source§impl Clone for HttpsTransportConfig
impl Clone for HttpsTransportConfig
Source§fn clone(&self) -> HttpsTransportConfig
fn clone(&self) -> HttpsTransportConfig
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 moreAuto Trait Implementations§
impl Freeze for HttpsTransportConfig
impl RefUnwindSafe for HttpsTransportConfig
impl Send for HttpsTransportConfig
impl Sync for HttpsTransportConfig
impl Unpin for HttpsTransportConfig
impl UnsafeUnpin for HttpsTransportConfig
impl UnwindSafe for HttpsTransportConfig
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