MCPcopy Create free account
hub / github.com/Moosync/Moosync / set_secure

Method set_secure

src-tauri/src/extensions/request_handler.rs:147–152  ·  view source on GitHub ↗
(&self, data: PreferenceData)

Source from the content-addressed store, hash-verified

145
146 #[tracing::instrument(level = "debug", skip(self, data))]
147 pub fn set_secure(&self, data: PreferenceData) -> Result<MainCommandResponse> {
148 let preferences: State<'_, PreferenceConfig> = self.app_handle.state();
149 preferences.set_secure(data.key, data.value)?;
150
151 Ok(MainCommandResponse::SetSecure(true))
152 }
153
154 #[tracing::instrument(level = "debug", skip(self, _data))]
155 pub fn register_oauth(&self, _data: String) -> Result<MainCommandResponse> {

Callers 4

set_tokensFunction · 0.45
signoutMethod · 0.45
signoutMethod · 0.45
handle_requestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected