Struct fuel_indexer_lib::config::IndexerConfig
source · pub struct IndexerConfig {
pub verbose: bool,
pub local_fuel_node: bool,
pub indexer_net_config: bool,
pub fuel_node: FuelNodeConfig,
pub graphql_api: GraphQLConfig,
pub database: DatabaseConfig,
pub metrics: bool,
pub stop_idle_indexers: bool,
pub run_migrations: bool,
pub authentication: AuthenticationConfig,
}
Expand description
Fuel indexer service configuration.
Fields§
§verbose: bool
§local_fuel_node: bool
§indexer_net_config: bool
§fuel_node: FuelNodeConfig
§graphql_api: GraphQLConfig
§database: DatabaseConfig
§metrics: bool
§stop_idle_indexers: bool
§run_migrations: bool
§authentication: AuthenticationConfig
Implementations§
source§impl IndexerConfig
impl IndexerConfig
pub fn from_file(path: impl AsRef<Path>) -> Result<Self, IndexerConfigError>
pub fn inject_opt_env_vars(&mut self) -> Result<(), IndexerConfigError>
Trait Implementations§
source§impl Clone for IndexerConfig
impl Clone for IndexerConfig
source§fn clone(&self) -> IndexerConfig
fn clone(&self) -> IndexerConfig
Returns a copy 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 IndexerConfig
impl Debug for IndexerConfig
source§impl Default for IndexerConfig
impl Default for IndexerConfig
source§fn default() -> IndexerConfig
fn default() -> IndexerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IndexerConfig
impl<'de> Deserialize<'de> for IndexerConfig
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 From<ApiServerArgs> for IndexerConfig
impl From<ApiServerArgs> for IndexerConfig
source§fn from(args: ApiServerArgs) -> Self
fn from(args: ApiServerArgs) -> Self
Converts to this type from the input type.
source§impl From<IndexerArgs> for IndexerConfig
impl From<IndexerArgs> for IndexerConfig
source§fn from(args: IndexerArgs) -> Self
fn from(args: IndexerArgs) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IndexerConfig
impl Send for IndexerConfig
impl Sync for IndexerConfig
impl Unpin for IndexerConfig
impl UnwindSafe for IndexerConfig
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