mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-22 15:22:13 +01:00
chore(sdk): ran clippy
This commit is contained in:
parent
8dfecf976c
commit
1f77d90c0f
@ -1,4 +1,4 @@
|
|||||||
use std::process::Child;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
cli_session::CliSession, config::Config, connect_params::ConnectParams, downloader::Downloader,
|
cli_session::CliSession, config::Config, connect_params::ConnectParams, downloader::Downloader,
|
||||||
|
@ -35,7 +35,7 @@ impl CacheVolume {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<CacheId> {
|
) -> eyre::Result<CacheId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ impl Container {
|
|||||||
pub async fn default_args(
|
pub async fn default_args(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("defaultArgs");
|
let query = self.selection.select("defaultArgs");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -239,7 +239,7 @@ impl Container {
|
|||||||
pub async fn entrypoint(
|
pub async fn entrypoint(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("entrypoint");
|
let query = self.selection.select("entrypoint");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -258,7 +258,7 @@ impl Container {
|
|||||||
pub fn env_variables(
|
pub fn env_variables(
|
||||||
&self,
|
&self,
|
||||||
) -> Vec<EnvVariable> {
|
) -> Vec<EnvVariable> {
|
||||||
let mut query = self.selection.select("envVariables");
|
let query = self.selection.select("envVariables");
|
||||||
|
|
||||||
return vec![EnvVariable {
|
return vec![EnvVariable {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -274,7 +274,7 @@ impl Container {
|
|||||||
pub fn exec(
|
pub fn exec(
|
||||||
&self,
|
&self,
|
||||||
) -> Container {
|
) -> Container {
|
||||||
let mut query = self.selection.select("exec");
|
let query = self.selection.select("exec");
|
||||||
|
|
||||||
return Container {
|
return Container {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -321,7 +321,7 @@ impl Container {
|
|||||||
pub async fn exit_code(
|
pub async fn exit_code(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<isize> {
|
) -> eyre::Result<isize> {
|
||||||
let mut query = self.selection.select("exitCode");
|
let query = self.selection.select("exitCode");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -405,7 +405,7 @@ impl Container {
|
|||||||
pub fn fs(
|
pub fn fs(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("fs");
|
let query = self.selection.select("fs");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -417,7 +417,7 @@ impl Container {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<ContainerId> {
|
) -> eyre::Result<ContainerId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -436,7 +436,7 @@ impl Container {
|
|||||||
pub fn labels(
|
pub fn labels(
|
||||||
&self,
|
&self,
|
||||||
) -> Vec<Label> {
|
) -> Vec<Label> {
|
||||||
let mut query = self.selection.select("labels");
|
let query = self.selection.select("labels");
|
||||||
|
|
||||||
return vec![Label {
|
return vec![Label {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -448,7 +448,7 @@ impl Container {
|
|||||||
pub async fn mounts(
|
pub async fn mounts(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("mounts");
|
let query = self.selection.select("mounts");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -499,7 +499,7 @@ impl Container {
|
|||||||
pub async fn platform(
|
pub async fn platform(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Platform> {
|
) -> eyre::Result<Platform> {
|
||||||
let mut query = self.selection.select("platform");
|
let query = self.selection.select("platform");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -546,7 +546,7 @@ impl Container {
|
|||||||
pub fn rootfs(
|
pub fn rootfs(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("rootfs");
|
let query = self.selection.select("rootfs");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -559,7 +559,7 @@ impl Container {
|
|||||||
pub async fn stderr(
|
pub async fn stderr(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("stderr");
|
let query = self.selection.select("stderr");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -568,7 +568,7 @@ impl Container {
|
|||||||
pub async fn stdout(
|
pub async fn stdout(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("stdout");
|
let query = self.selection.select("stdout");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -576,7 +576,7 @@ impl Container {
|
|||||||
pub async fn user(
|
pub async fn user(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("user");
|
let query = self.selection.select("user");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -588,7 +588,7 @@ impl Container {
|
|||||||
pub fn with_default_args(
|
pub fn with_default_args(
|
||||||
&self,
|
&self,
|
||||||
) -> Container {
|
) -> Container {
|
||||||
let mut query = self.selection.select("withDefaultArgs");
|
let query = self.selection.select("withDefaultArgs");
|
||||||
|
|
||||||
return Container {
|
return Container {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -1188,7 +1188,7 @@ impl Container {
|
|||||||
pub async fn workdir(
|
pub async fn workdir(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("workdir");
|
let query = self.selection.select("workdir");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1298,7 +1298,7 @@ impl Directory {
|
|||||||
pub fn docker_build(
|
pub fn docker_build(
|
||||||
&self,
|
&self,
|
||||||
) -> Container {
|
) -> Container {
|
||||||
let mut query = self.selection.select("dockerBuild");
|
let query = self.selection.select("dockerBuild");
|
||||||
|
|
||||||
return Container {
|
return Container {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -1345,7 +1345,7 @@ impl Directory {
|
|||||||
pub async fn entries(
|
pub async fn entries(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("entries");
|
let query = self.selection.select("entries");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1397,7 +1397,7 @@ impl Directory {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<DirectoryId> {
|
) -> eyre::Result<DirectoryId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1703,7 +1703,7 @@ impl EnvVariable {
|
|||||||
pub async fn name(
|
pub async fn name(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("name");
|
let query = self.selection.select("name");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1711,7 +1711,7 @@ impl EnvVariable {
|
|||||||
pub async fn value(
|
pub async fn value(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("value");
|
let query = self.selection.select("value");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1727,7 +1727,7 @@ impl File {
|
|||||||
pub async fn contents(
|
pub async fn contents(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("contents");
|
let query = self.selection.select("contents");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1746,7 +1746,7 @@ impl File {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<FileId> {
|
) -> eyre::Result<FileId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1754,7 +1754,7 @@ impl File {
|
|||||||
pub fn secret(
|
pub fn secret(
|
||||||
&self,
|
&self,
|
||||||
) -> Secret {
|
) -> Secret {
|
||||||
let mut query = self.selection.select("secret");
|
let query = self.selection.select("secret");
|
||||||
|
|
||||||
return Secret {
|
return Secret {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -1766,7 +1766,7 @@ impl File {
|
|||||||
pub async fn size(
|
pub async fn size(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<isize> {
|
) -> eyre::Result<isize> {
|
||||||
let mut query = self.selection.select("size");
|
let query = self.selection.select("size");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1806,7 +1806,7 @@ impl GitRef {
|
|||||||
pub async fn digest(
|
pub async fn digest(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("digest");
|
let query = self.selection.select("digest");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1818,7 +1818,7 @@ impl GitRef {
|
|||||||
pub fn tree(
|
pub fn tree(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("tree");
|
let query = self.selection.select("tree");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -1878,7 +1878,7 @@ impl GitRepository {
|
|||||||
pub async fn branches(
|
pub async fn branches(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("branches");
|
let query = self.selection.select("branches");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -1916,7 +1916,7 @@ impl GitRepository {
|
|||||||
pub async fn tags(
|
pub async fn tags(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Vec<String>> {
|
) -> eyre::Result<Vec<String>> {
|
||||||
let mut query = self.selection.select("tags");
|
let query = self.selection.select("tags");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2029,7 +2029,7 @@ impl Host {
|
|||||||
pub fn workdir(
|
pub fn workdir(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("workdir");
|
let query = self.selection.select("workdir");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2074,7 +2074,7 @@ impl HostVariable {
|
|||||||
pub fn secret(
|
pub fn secret(
|
||||||
&self,
|
&self,
|
||||||
) -> Secret {
|
) -> Secret {
|
||||||
let mut query = self.selection.select("secret");
|
let query = self.selection.select("secret");
|
||||||
|
|
||||||
return Secret {
|
return Secret {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2086,7 +2086,7 @@ impl HostVariable {
|
|||||||
pub async fn value(
|
pub async fn value(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("value");
|
let query = self.selection.select("value");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2102,7 +2102,7 @@ impl Label {
|
|||||||
pub async fn name(
|
pub async fn name(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("name");
|
let query = self.selection.select("name");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2110,7 +2110,7 @@ impl Label {
|
|||||||
pub async fn value(
|
pub async fn value(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("value");
|
let query = self.selection.select("value");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2126,7 +2126,7 @@ impl Project {
|
|||||||
pub fn extensions(
|
pub fn extensions(
|
||||||
&self,
|
&self,
|
||||||
) -> Vec<Project> {
|
) -> Vec<Project> {
|
||||||
let mut query = self.selection.select("extensions");
|
let query = self.selection.select("extensions");
|
||||||
|
|
||||||
return vec![Project {
|
return vec![Project {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2138,7 +2138,7 @@ impl Project {
|
|||||||
pub fn generated_code(
|
pub fn generated_code(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("generatedCode");
|
let query = self.selection.select("generatedCode");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2150,7 +2150,7 @@ impl Project {
|
|||||||
pub async fn install(
|
pub async fn install(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<bool> {
|
) -> eyre::Result<bool> {
|
||||||
let mut query = self.selection.select("install");
|
let query = self.selection.select("install");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2158,7 +2158,7 @@ impl Project {
|
|||||||
pub async fn name(
|
pub async fn name(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("name");
|
let query = self.selection.select("name");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2166,7 +2166,7 @@ impl Project {
|
|||||||
pub async fn schema(
|
pub async fn schema(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("schema");
|
let query = self.selection.select("schema");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2174,7 +2174,7 @@ impl Project {
|
|||||||
pub async fn sdk(
|
pub async fn sdk(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("sdk");
|
let query = self.selection.select("sdk");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2248,7 +2248,7 @@ impl Query {
|
|||||||
pub fn container(
|
pub fn container(
|
||||||
&self,
|
&self,
|
||||||
) -> Container {
|
) -> Container {
|
||||||
let mut query = self.selection.select("container");
|
let query = self.selection.select("container");
|
||||||
|
|
||||||
return Container {
|
return Container {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2287,7 +2287,7 @@ impl Query {
|
|||||||
pub async fn default_platform(
|
pub async fn default_platform(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<Platform> {
|
) -> eyre::Result<Platform> {
|
||||||
let mut query = self.selection.select("defaultPlatform");
|
let query = self.selection.select("defaultPlatform");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2299,7 +2299,7 @@ impl Query {
|
|||||||
pub fn directory(
|
pub fn directory(
|
||||||
&self,
|
&self,
|
||||||
) -> Directory {
|
) -> Directory {
|
||||||
let mut query = self.selection.select("directory");
|
let query = self.selection.select("directory");
|
||||||
|
|
||||||
return Directory {
|
return Directory {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2391,7 +2391,7 @@ impl Query {
|
|||||||
pub fn host(
|
pub fn host(
|
||||||
&self,
|
&self,
|
||||||
) -> Host {
|
) -> Host {
|
||||||
let mut query = self.selection.select("host");
|
let query = self.selection.select("host");
|
||||||
|
|
||||||
return Host {
|
return Host {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2495,7 +2495,7 @@ impl Query {
|
|||||||
pub fn socket(
|
pub fn socket(
|
||||||
&self,
|
&self,
|
||||||
) -> Socket {
|
) -> Socket {
|
||||||
let mut query = self.selection.select("socket");
|
let query = self.selection.select("socket");
|
||||||
|
|
||||||
return Socket {
|
return Socket {
|
||||||
proc: self.proc.clone(),
|
proc: self.proc.clone(),
|
||||||
@ -2537,7 +2537,7 @@ impl Secret {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<SecretId> {
|
) -> eyre::Result<SecretId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2545,7 +2545,7 @@ impl Secret {
|
|||||||
pub async fn plaintext(
|
pub async fn plaintext(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<String> {
|
) -> eyre::Result<String> {
|
||||||
let mut query = self.selection.select("plaintext");
|
let query = self.selection.select("plaintext");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
@ -2561,7 +2561,7 @@ impl Socket {
|
|||||||
pub async fn id(
|
pub async fn id(
|
||||||
&self,
|
&self,
|
||||||
) -> eyre::Result<SocketId> {
|
) -> eyre::Result<SocketId> {
|
||||||
let mut query = self.selection.select("id");
|
let query = self.selection.select("id");
|
||||||
|
|
||||||
query.execute(&graphql_client(&self.conn)).await
|
query.execute(&graphql_client(&self.conn)).await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user