Skip to content

Commit

Permalink
定義の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Aug 13, 2024
1 parent 64247f8 commit 1b10a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct DriveFile{
thumbnailAccessKey: String,
webpublicAccessKey: String,
isLink:bool,
src: Option<String>,
url: Option<String>,
}
pub struct Request{
request_type:u8,
Expand Down Expand Up @@ -274,7 +274,7 @@ struct ResponseJson{
impl From<DriveFile> for ResponseJson{
fn from(value: DriveFile) -> Self {
Self{
uri:value.src.unwrap_or_else(||String::new()),
uri:value.url.unwrap_or_else(||String::new()),
link:value.isLink,
}
}
Expand Down

0 comments on commit 1b10a95

Please sign in to comment.