MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / save

Method save

crates/chat-cli/src/auth/builder_id.rs:214–219  ·  view source on GitHub ↗

Saves to the passed secret store.

(&self, secret_store: &Database)

Source from the content-addressed store, hash-verified

212
213 /// Saves to the passed secret store.
214 pub async fn save(&self, secret_store: &Database) -> Result<(), AuthError> {
215 secret_store
216 .set_secret(Self::SECRET_KEY, &serde_json::to_string(&self)?)
217 .await?;
218 Ok(())
219 }
220}
221
222#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]

Callers 4

finishMethod · 0.45
refresh_tokenMethod · 0.45
poll_create_tokenFunction · 0.45

Calls 1

set_secretMethod · 0.80

Tested by

no test coverage detected