Struct flow_sdk::access::ExecuteScriptResponse [−][src]
Expand description
The return value of the script.
Fields
value: Box<[u8]>
The return value. Use ExecuteScriptResponse::parse()
to parse it.
Implementations
Parses the value.
Examples found in repository
examples/scripts.rs (line 45)
≺ ≻
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
let mut client = TonicHyperFlowClient::mainnet().await?;
client.ping().await?;
let ret = client
.execute_script_at_latest_block(
SIMPLE_SCRIPT,
[ValueRef::Int(cadence_json::BigInt::from(32))],
)
.await?
.parse()?;
println!("{:#?}", ret);
let ret = client
.execute_script_at_latest_block(COMPLEX_SCRIPT, [ValueRef::String("John Doe")])
.await?
.parse()?;
println!("{:#?}", ret);
Ok(())
}
Trait Implementations
type Wire = LengthDelimitedWire
If this is a message
, call merge()
on all fields,
if this is repeated
, extend this with the elements of other
.
for all other types simply overwrite this with other
, which is the default. Read more
fn merge_from<B>(
&mut self,
deserializer: &mut Deserializer<'de, B>
) -> Result<(), DecodingError> where
B: Buf,
fn decode_field<B: Buf>(
&mut self,
d: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
fn decode_field<B: Buf>(
&mut self,
d: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
Decodes a field with the given tag. Read more
fn decode<B>(
deserializer: &mut Deserializer<'de, B>
) -> Result<Self, DecodingError> where
B: Buf,
Self: Default,
Returns the “default value” for a type. Read more
impl<Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtLatestBlockRequest<Script, Arguments>
impl<Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtLatestBlockRequest<Script, Arguments>
impl<BlockId, Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtBlockIdRequest<BlockId, Script, Arguments>
impl<BlockId, Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtBlockIdRequest<BlockId, Script, Arguments>
impl<Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtBlockHeightRequest<Script, Arguments>
impl<Script, Arguments> FlowRequest<ExecuteScriptResponse> for ExecuteScriptAtBlockHeightRequest<Script, Arguments>
Auto Trait Implementations
impl RefUnwindSafe for ExecuteScriptResponse
impl Send for ExecuteScriptResponse
impl Sync for ExecuteScriptResponse
impl Unpin for ExecuteScriptResponse
impl UnwindSafe for ExecuteScriptResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more