MCPcopy Create free account
hub / github.com/bajrangCoder/setu / MethodDropdownState

Class MethodDropdownState

src/components/custom_dropdown.rs:12–17  ·  view source on GitHub ↗

State for the method dropdown

Source from the content-addressed store, hash-verified

10use crate::theme::method_color;
11
12/// State for the method dropdown
13pub struct MethodDropdownState {
14 pub selected: HttpMethod,
15 pub is_open: bool,
16 /// Tracks when the dropdown was last closed (to prevent immediate reopen on trigger click)
17 close_time: Option<std::time::Instant>,
18 closing_at: Option<std::time::Instant>,
19 close_epoch: u64,
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected