pub struct NewtonCliConfig {
pub eth_rpc_url: String,
pub newton_rpc_url: String,
pub signer: EcdsaKey,
pub dashboard_bearer_token: Option<String>,
pub dashboard_api_base_url: Option<String>,
}Expand description
Aggregator Config
Fields§
§eth_rpc_url: StringEthereum RPC URL
newton_rpc_url: StringNewton RPC URL
signer: EcdsaKeySigner
dashboard_bearer_token: Option<String>Dashboard bearer token for API authentication
dashboard_api_base_url: Option<String>Dashboard API base URL
Implementations§
Source§impl NewtonCliConfig
impl NewtonCliConfig
Sourcepub fn set_eth_rpc_url(&mut self, eth_rpc_url: String)
pub fn set_eth_rpc_url(&mut self, eth_rpc_url: String)
Set eth rpc url
Sourcepub fn set_newton_rpc_url(&mut self, newton_rpc_url: String)
pub fn set_newton_rpc_url(&mut self, newton_rpc_url: String)
Set newton rpc url
Sourcepub fn set_signer(&mut self, signer: EcdsaKey)
pub fn set_signer(&mut self, signer: EcdsaKey)
Set signer
Sourcepub fn set_dashboard_bearer_token(&mut self, token: Option<String>)
pub fn set_dashboard_bearer_token(&mut self, token: Option<String>)
Set dashboard bearer token
Sourcepub fn set_dashboard_api_base_url(&mut self, url: Option<String>)
pub fn set_dashboard_api_base_url(&mut self, url: Option<String>)
Set dashboard API base URL
Trait Implementations§
Source§impl Clone for NewtonCliConfig
impl Clone for NewtonCliConfig
Source§fn clone(&self) -> NewtonCliConfig
fn clone(&self) -> NewtonCliConfig
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 ConfigLoader for NewtonCliConfig
impl ConfigLoader for NewtonCliConfig
Source§const FILE_NAME: &'static str = "newton-cli"
const FILE_NAME: &'static str = "newton-cli"
The base name of the configuration file (without extension)
e.g., “data-provider”, “aggregator”, “operator”
Source§const ENV_PREFIX: &'static str = "NEWTON_CLI"
const ENV_PREFIX: &'static str = "NEWTON_CLI"
The environment variable prefix for this configuration
e.g., “DATA_PROVIDER”, “AGGREGATOR”, “OPERATOR”
Source§impl Debug for NewtonCliConfig
impl Debug for NewtonCliConfig
Source§impl<'de> Deserialize<'de> for NewtonCliConfig
impl<'de> Deserialize<'de> for NewtonCliConfig
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 NewtonCliConfig
impl PartialEq for NewtonCliConfig
Source§impl Serialize for NewtonCliConfig
impl Serialize for NewtonCliConfig
impl Eq for NewtonCliConfig
impl StructuralPartialEq for NewtonCliConfig
Auto Trait Implementations§
impl Freeze for NewtonCliConfig
impl RefUnwindSafe for NewtonCliConfig
impl Send for NewtonCliConfig
impl Sync for NewtonCliConfig
impl Unpin for NewtonCliConfig
impl UnwindSafe for NewtonCliConfig
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<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
Compare self to
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.