Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarkusZoppelt/portfolio_rs
/ functions
Functions
385 in github.com/MarkusZoppelt/portfolio_rs
⨍
Functions
385
◇
Types & classes
64
Method
as_str
(&self)
src/config.rs:48
Function
bad_request
(e: eyre::Report)
src/api/mod.rs:113
Method
clear_paths
Clear all remembered paths and return to onboarding state.
src/config.rs:229
Function
create_position
( State(state): State<ApiState>, Json(req): Json<CreatePositionRequest>, )
src/api/mod.rs:274
Method
currency
(&self)
src/state.rs:229
Method
default
()
src/config.rs:29
Method
default
()
src/portfolio.rs:17
Function
delete_position
( State(state): State<ApiState>, Path(id): Path<usize>, )
src/api/mod.rs:297
Method
description
Returns a description of what the component does
src/tui.rs:104
Function
escape_markdown
(value: &str)
src/context.rs:372
Method
file_path
(&self)
src/state.rs:225
Method
fmt
(&self, f: &mut Formatter<'_>)
src/policy.rs:178
Method
fmt
(&self, f: &mut Formatter<'_>)
src/theme.rs:18
Method
fmt
(&self, f: &mut Formatter<'_>)
src/tui.rs:154
Method
from
(cfg: &AppConfig)
src/state.rs:881
Method
from_file
(path: &str)
src/policy.rs:208
Method
from_portfolio
(portfolio: &Portfolio, currency: &str, network_status: &str)
src/context.rs:84
Method
from_portfolio_and_policy
( portfolio: &Portfolio, policy: &Policy, currency: &str, )
src/review.rs:63
Method
from_str
(content: &str)
src/policy.rs:251
Method
from_str
(s: &str)
src/tui.rs:129
Function
get_allocation
(State(state): State<ApiState>)
src/api/mod.rs:211
Function
get_context
(State(state): State<ApiState>)
src/api/mod.rs:219
Function
get_doctor
( State(state): State<ApiState>, Query(params): Query<DoctorParams>, )
src/api/mod.rs:257
Function
get_performance
(State(state): State<ApiState>)
src/api/mod.rs:215
Function
get_portfolio
(State(state): State<ApiState>)
src/api/mod.rs:191
Function
get_position
( State(state): State<ApiState>, Path(id): Path<usize>, )
src/api/mod.rs:199
Function
get_positions
(State(state): State<ApiState>)
src/api/mod.rs:195
Method
get_previous_close
(&self)
src/position.rs:182
Function
get_review
(State(state): State<ApiState>)
src/api/mod.rs:223
Function
get_simulation
( State(state): State<ApiState>, )
src/api/mod.rs:232
Function
get_validation
(State(state): State<ApiState>)
src/api/mod.rs:243
Function
internal
(e: eyre::Report)
src/api/mod.rs:117
Method
into_response
(self)
src/api/mod.rs:93
Method
load
Load the config from disk, migrating from older formats if needed.
src/config.rs:87
Method
load_simple_file
Remember a standalone positions file and clear any workspace.
src/state.rs:120
Method
load_workspace
Load a workspace directory, reading `positions.json` and `portfolio/policy.toml`.
src/state.rs:90
Function
main
()
src/main.rs:4
Function
map_position_error
Map an [`AppState`] position error: "not found" becomes 404, everything else is an internal error.
src/api/mod.rs:105
Function
money
(value: f64, currency: &str)
src/context.rs:354
Method
new
()
src/portfolio.rs:23
Method
new
(currency: String)
src/state.rs:61
Method
new
(disabled_list: Vec<String>)
src/tui.rs:165
Method
new
Build the state and perform the initial quote fetch so the server never responds with an empty portfolio while still starting up.
src/api/mod.rs:65
Method
parse
(value: &str)
src/context.rs:20
Function
pct
(value: f64)
src/context.rs:358
Method
policy
(&self)
src/state.rs:158
Function
quantity
(value: f64)
src/context.rs:362
Function
refresh_prices
(State(state): State<ApiState>)
src/api/mod.rs:269
Method
set_currency
(&self, currency: String)
src/state.rs:233
Method
set_last_mode
(&mut self, mode: AppMode)
src/config.rs:197
Method
set_llm_api_key
(&mut self, key: impl Into<String>)
src/config.rs:210
Method
set_llm_model
(&mut self, model: impl Into<String>)
src/config.rs:219
Method
set_llm_provider_url
(&mut self, url: impl Into<String>)
src/config.rs:201
Method
set_policy_from_toml
Set the active policy directly from a TOML string.
src/state.rs:145
Method
set_theme
(&mut self, theme: ThemeMode)
src/config.rs:193
Function
test_add_update_delete_position_roundtrip
()
src/state.rs:1045
Function
test_agent_init_creates_files
()
tests/e2e_offline.rs:135
Function
test_agent_init_dry_run_does_not_create
()
tests/e2e_offline.rs:166
Function
test_agent_init_fails_on_missing_dir
()
tests/e2e_offline.rs:206
Function
test_agent_init_skips_existing_files
()
tests/e2e_offline.rs:190
Function
test_agent_skill_export_creates_skill
()
tests/e2e_offline.rs:230
Function
test_agent_skill_export_dry_run_does_not_create
()
tests/e2e_offline.rs:248
Function
test_agent_skill_export_skips_existing
()
tests/e2e_offline.rs:269
Function
test_agent_skill_path_shows_info
()
tests/e2e_offline.rs:287
Function
test_agent_skill_show_outputs_skill
()
tests/e2e_offline.rs:218
Function
test_allocation_output
()
tests/e2e_network.rs:254
Function
test_app_config_dto_serializes_camel_case
()
src/state.rs:1008
Function
test_balances_output
()
tests/e2e_network.rs:239
Function
test_cli
()
src/cli.rs:566
Function
test_cli_default_tab
()
src/cli.rs:610
Function
test_cli_disable_argument
()
src/cli.rs:685
Function
test_cli_tab_order_independence
()
src/cli.rs:596
Function
test_cli_with_file_and_tab
()
src/cli.rs:582
Function
test_cli_with_tab_flag
()
src/cli.rs:573
Function
test_component_enum_as_str
()
src/cli.rs:734
Function
test_component_enum_from_string
()
src/cli.rs:718
Function
test_context_endpoint
()
tests/api_offline.rs:199
Function
test_context_help
()
tests/e2e_offline.rs:28
Function
test_context_json_output_structure
()
tests/e2e_network.rs:71
Function
test_context_markdown_output
()
tests/e2e_network.rs:105
Function
test_context_output_format_parse
()
src/context.rs:392
Function
test_context_outputs_camel_case_json
()
tests/e2e_offline.rs:542
Function
test_context_outputs_markdown_briefing
()
tests/e2e_offline.rs:532
Function
test_create_live_portfolio
()
src/cli.rs:764
Function
test_create_live_portfolio
()
src/services/portfolio_loader.rs:113
Function
test_crud_position_persists_to_file
()
tests/api_offline.rs:93
Function
test_decision_draft_dry_run
()
tests/e2e_offline.rs:423
Function
test_decision_draft_dry_run_does_not_block_writes
()
tests/e2e_offline.rs:703
Function
test_decision_draft_dry_run_previews_existing_file_without_erroring
()
tests/e2e_offline.rs:678
Function
test_decision_draft_refuses_overwrite
()
tests/e2e_offline.rs:657
Function
test_decision_help
()
tests/e2e_offline.rs:59
Function
test_default_config
()
src/config.rs:241
Function
test_disabled_components_backward_compatibility
()
src/cli.rs:771
Function
test_disabled_components_error_handling
()
src/cli.rs:780
Function
test_disabled_components_parsing
()
src/cli.rs:702
Function
test_disabled_components_with_enum
()
src/cli.rs:744
Function
test_doctor_finds_missing_policy
()
tests/e2e_offline.rs:406
Function
test_doctor_help
()
tests/e2e_offline.rs:73
Function
test_doctor_reports_healthy_workspace
()
tests/e2e_offline.rs:384
Function
test_draft_decision_dry_run_previews_existing_file_without_erroring
()
tests/api_offline.rs:292
← previous
next →
201–300 of 385, ranked by callers