#[non_exhaustive]pub struct ZBUrlProvider {
pub url: String,
pub bulk_url: String,
pub list_evaluator_url: String,
pub inbox_placement_url: String,
}Expand description
The base URLs requests are built from.
Start from ZBUrlProvider::default() (the live hosts) and assign the fields
you want to change. The struct is #[non_exhaustive], so it cannot be built
with a struct literal outside this crate and a base URL added later is not a
breaking change.
Every request checks its final URL: it must be https://, or http:// with
the exact host 127.0.0.1, localhost or [::1] (for local tests). Any
other URL fails with an error before a connection is opened, so the API key
is never sent in cleartext.
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.url: String§bulk_url: String§list_evaluator_url: StringOverridable; the list evaluator path differs from the other bulk endpoints.
inbox_placement_url: StringOverridable; the Inbox Placement Tester is not under the bulk /v2 path.
Implementations§
Source§impl ZBUrlProvider
impl ZBUrlProvider
Trait Implementations§
Source§impl Clone for ZBUrlProvider
impl Clone for ZBUrlProvider
Source§impl Debug for ZBUrlProvider
impl Debug for ZBUrlProvider
Auto Trait Implementations§
impl Forget for ZBUrlProvider
impl Freeze for ZBUrlProvider
impl Move for ZBUrlProvider
impl RefUnwindSafe for ZBUrlProvider
impl Send for ZBUrlProvider
impl Sync for ZBUrlProvider
impl Unpin for ZBUrlProvider
impl UnsafeUnpin for ZBUrlProvider
impl UnwindSafe for ZBUrlProvider
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