Struct fuel_indexer_lib::config::ApiServerArgs
source · pub struct ApiServerArgs {Show 20 fields
pub config: Option<PathBuf>,
pub fuel_node_host: String,
pub fuel_node_port: String,
pub graphql_api_host: String,
pub graphql_api_port: String,
pub database: String,
pub max_body_size: usize,
pub run_migrations: bool,
pub postgres_user: Option<String>,
pub postgres_database: Option<String>,
pub postgres_password: Option<String>,
pub postgres_host: Option<String>,
pub postgres_port: Option<String>,
pub metrics: bool,
pub auth_enabled: bool,
pub auth_strategy: Option<String>,
pub jwt_secret: Option<String>,
pub jwt_issuer: Option<String>,
pub jwt_expiry: Option<usize>,
pub verbose: bool,
}
Fields§
§config: Option<PathBuf>
API server config file.
fuel_node_host: String
Host of the running Fuel node.
fuel_node_port: String
Listening port of the running Fuel node.
graphql_api_host: String
GraphQL API host.
graphql_api_port: String
GraphQL API port.
database: String
Database type.
max_body_size: usize
Max body size for GraphQL API requests.
run_migrations: bool
Run database migrations before starting service.
postgres_user: Option<String>
Postgres username.
postgres_database: Option<String>
Postgres database.
postgres_password: Option<String>
Postgres password.
postgres_host: Option<String>
Postgres host.
postgres_port: Option<String>
Postgres port.
metrics: bool
Use Prometheus metrics reporting.
auth_enabled: bool
Require users to authenticate for some operations.
auth_strategy: Option<String>
Authentication scheme used.
jwt_secret: Option<String>
Secret used for JWT scheme (if JWT scheme is specified).
jwt_issuer: Option<String>
Issuer of JWT claims (if JWT scheme is specified).
jwt_expiry: Option<usize>
Amount of time (seconds) before expiring token (if JWT scheme is specified).
verbose: bool
Enable verbose logging.
Trait Implementations§
source§impl Args for ApiServerArgs
impl Args for ApiServerArgs
source§impl Clone for ApiServerArgs
impl Clone for ApiServerArgs
source§fn clone(&self) -> ApiServerArgs
fn clone(&self) -> ApiServerArgs
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 CommandFactory for ApiServerArgs
impl CommandFactory for ApiServerArgs
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
source§impl Debug for ApiServerArgs
impl Debug for ApiServerArgs
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 FromArgMatches for ApiServerArgs
impl FromArgMatches for ApiServerArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for ApiServerArgs
impl Parser for ApiServerArgs
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for ApiServerArgs
impl Send for ApiServerArgs
impl Sync for ApiServerArgs
impl Unpin for ApiServerArgs
impl UnwindSafe for ApiServerArgs
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