MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / struct_fields

Function struct_fields

atomic-cli/src/commands/workspace/update.rs:135–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134 #[test]
135 fn struct_fields() {
136 let cmd = WorkspaceUpdate {
137 slug: "ws".to_string(),
138 name: Some("New Name".to_string()),
139 description: Some("New desc".to_string()),
140 visibility: Some(Visibility::Public),
141 org: Some("acme".to_string()),
142 };
143 assert_eq!(cmd.slug, "ws");
144 assert_eq!(cmd.name.as_deref(), Some("New Name"));
145 assert_eq!(cmd.description.as_deref(), Some("New desc"));
146 assert_eq!(cmd.visibility, Some(Visibility::Public));
147 assert_eq!(cmd.org.as_deref(), Some("acme"));
148 }
149}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected