Add response type declaration
This commit is contained in:
parent
3279fb22cd
commit
5046c08817
1 changed files with 5 additions and 2 deletions
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
pub mod client;
|
pub mod client;
|
||||||
|
|
||||||
use libcommand::internal::{AuthorizeRequest};
|
use std::io::{BufRead, Write};
|
||||||
|
use std::process::Stdio;
|
||||||
|
use libcommand::internal::{AuthorizeRequest, AuthorizeResponse};
|
||||||
|
use tonic::Response;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
|
@ -22,7 +25,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
public_ssh_keys: "Tonic".into(),
|
public_ssh_keys: "Tonic".into(),
|
||||||
});
|
});
|
||||||
|
|
||||||
let response = client.authorize(request).await?;
|
let response : Response<AuthorizeResponse> = client.authorize(request).await?;
|
||||||
|
|
||||||
println!("RESPONSE={:?}", response);
|
println!("RESPONSE={:?}", response);
|
||||||
|
|
||||||
|
|
Reference in a new issue