@@ -105,7 +105,7 @@ pub struct QueryAttachmentsArgs {
105105 pub group : Option < String > ,
106106 /// The prefix of the key of the attachments
107107 #[ arg( short, long = "key" ) ]
108- pub key_prefix : Option < String > ,
108+ pub key : Option < String > ,
109109 /// The limit of the tasks to query
110110 #[ arg( long) ]
111111 pub limit : Option < u64 > ,
@@ -137,7 +137,7 @@ pub struct DownloadAttachmentsByFilterArgs {
137137 pub group : Option < String > ,
138138 /// The prefix of the key of the attachments
139139 #[ arg( short, long = "key" ) ]
140- pub key_prefix : Option < String > ,
140+ pub key : Option < String > ,
141141 /// The limit of the attachments to download
142142 #[ arg( long) ]
143143 pub limit : Option < u64 > ,
@@ -183,7 +183,7 @@ pub struct DownloadAttachmentsByListArgs {
183183impl From < QueryAttachmentsArgs > for AttachmentsQueryReq {
184184 fn from ( args : QueryAttachmentsArgs ) -> Self {
185185 Self {
186- key_prefix : args. key_prefix ,
186+ key : args. key ,
187187 limit : args. limit ,
188188 offset : args. offset ,
189189 count : args. count ,
@@ -194,7 +194,7 @@ impl From<QueryAttachmentsArgs> for AttachmentsQueryReq {
194194impl From < DownloadAttachmentsByFilterArgs > for AttachmentsDownloadByFilterReq {
195195 fn from ( args : DownloadAttachmentsByFilterArgs ) -> Self {
196196 Self {
197- key : args. key_prefix ,
197+ key : args. key ,
198198 limit : args. limit ,
199199 offset : args. offset ,
200200 }
0 commit comments