pub struct OverrideProvider {
pub override_url: Option<RegexSubstitution>,
}Expand description
Allows modifying an RpcEndpoint’s request URL and HTTP headers.
Currently, the request URL is modified using the OverrideProvider::override_url regular
expression and HTTP headers are reset.
Fields§
§override_url: Option<RegexSubstitution>The regular expression used to override the RpcEndpoint in when the OverrideProvider is applied.
Trait Implementations§
Source§impl CandidType for OverrideProvider
impl CandidType for OverrideProvider
Source§impl Clone for OverrideProvider
impl Clone for OverrideProvider
Source§fn clone(&self) -> OverrideProvider
fn clone(&self) -> OverrideProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 OverrideProvider
impl Debug for OverrideProvider
Source§impl Default for OverrideProvider
impl Default for OverrideProvider
Source§fn default() -> OverrideProvider
fn default() -> OverrideProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OverrideProvider
impl<'de> Deserialize<'de> for OverrideProvider
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 OverrideProvider
impl PartialEq for OverrideProvider
Source§impl Serialize for OverrideProvider
impl Serialize for OverrideProvider
impl Eq for OverrideProvider
impl StructuralPartialEq for OverrideProvider
Auto Trait Implementations§
impl Freeze for OverrideProvider
impl RefUnwindSafe for OverrideProvider
impl Send for OverrideProvider
impl Sync for OverrideProvider
impl Unpin for OverrideProvider
impl UnwindSafe for OverrideProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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