Home
runx-sdk

runx_sdk::client

Structs §

RunxClientOptions §

pub struct runx_sdk::client::RunxClientOptions { /* ... */ }

Trait Implementations §

impl Borrow for RunxClientOptions

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxClientOptions

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunxClientOptions

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunxClientOptions

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunxClientOptions

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxClientOptions

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunxClientOptions

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxClientOptions

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxClientOptions

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunxClientOptions

Output

impl Clone for RunxClientOptions

clone

fn clone(self: &Self) -> RunxClientOptions

impl Debug for RunxClientOptions

impl PartialEq for RunxClientOptions

eq

fn eq(self: &Self, other: &RunxClientOptions) -> bool

impl Default for RunxClientOptions

default

fn default() -> Self

impl Send for RunxClientOptions

impl Sync for RunxClientOptions

impl Freeze for RunxClientOptions

impl UnsafeUnpin for RunxClientOptions

impl Unpin for RunxClientOptions

impl UnwindSafe for RunxClientOptions

impl RefUnwindSafe for RunxClientOptions

impl StructuralPartialEq for RunxClientOptions

impl Eq for RunxClientOptions

RunxClient §

pub struct runx_sdk::client::RunxClient { /* ... */ }

Implementations §

impl RunxClient

new

fn new() -> Self

with_command

fn with_command(command: Vec<String>) -> Self

with_options

fn with_options(options: RunxClientOptions) -> Self

search_skills

fn search_skills( self: &Self, query: &str, source: Option<&str> ) -> RunxResult<Vec<SkillSearchResult>>

run_skill

fn run_skill(self: &Self, skill_ref: &str, options: RunSkillOptions) -> RunxResult<RunxJsonReport>

continue_run

fn continue_run( self: &Self, skill_ref: &str, run_id: &str, payload: ContinuePayload ) -> RunxResult<RunxJsonReport>

run_json

fn run_json(self: &Self, args: Vec<String>, stdin: Option<String>) -> RunxResult<JsonObject>

Trait Implementations §

impl Borrow for RunxClient

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxClient

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunxClient

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunxClient

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunxClient

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxClient

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunxClient

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxClient

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxClient

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunxClient

Output

impl Clone for RunxClient

clone

fn clone(self: &Self) -> RunxClient

impl Debug for RunxClient

impl PartialEq for RunxClient

eq

fn eq(self: &Self, other: &RunxClient) -> bool

impl Default for RunxClient

default

fn default() -> Self

impl Send for RunxClient

impl Sync for RunxClient

impl Freeze for RunxClient

impl UnsafeUnpin for RunxClient

impl Unpin for RunxClient

impl UnwindSafe for RunxClient

impl RefUnwindSafe for RunxClient

impl StructuralPartialEq for RunxClient

impl Eq for RunxClient

RunSkillOptions §

pub struct runx_sdk::client::RunSkillOptions { /* ... */ }

Implementations §

impl RunSkillOptions

with_input

fn with_input(self: Self, name: impl Into<String>, value: impl Into<String>) -> Self

Trait Implementations §

impl Borrow for RunSkillOptions

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunSkillOptions

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunSkillOptions

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunSkillOptions

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunSkillOptions

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunSkillOptions

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunSkillOptions

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunSkillOptions

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunSkillOptions

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunSkillOptions

Output

impl Clone for RunSkillOptions

clone

fn clone(self: &Self) -> RunSkillOptions

impl Debug for RunSkillOptions

impl Default for RunSkillOptions

default

fn default() -> RunSkillOptions

impl PartialEq for RunSkillOptions

eq

fn eq(self: &Self, other: &RunSkillOptions) -> bool

impl Send for RunSkillOptions

impl Sync for RunSkillOptions

impl Freeze for RunSkillOptions

impl UnsafeUnpin for RunSkillOptions

impl Unpin for RunSkillOptions

impl UnwindSafe for RunSkillOptions

impl RefUnwindSafe for RunSkillOptions

impl StructuralPartialEq for RunSkillOptions

impl Eq for RunSkillOptions

ContinuePayload §

pub struct runx_sdk::client::ContinuePayload { /* ... */ }

Implementations §

impl ContinuePayload

with_answer

fn with_answer(self: Self, id: impl Into<String>, value: JsonValue) -> Self

with_approval

fn with_approval(self: Self, id: impl Into<String>, approved: bool) -> Self

Trait Implementations §

impl Borrow for ContinuePayload

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ContinuePayload

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ContinuePayload

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ContinuePayload

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ContinuePayload

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ContinuePayload

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ContinuePayload

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ContinuePayload

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ContinuePayload

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ContinuePayload

Output

impl Clone for ContinuePayload

clone

fn clone(self: &Self) -> ContinuePayload

impl Debug for ContinuePayload

impl Default for ContinuePayload

default

fn default() -> ContinuePayload

impl PartialEq for ContinuePayload

eq

fn eq(self: &Self, other: &ContinuePayload) -> bool

impl Send for ContinuePayload

impl Sync for ContinuePayload

impl Freeze for ContinuePayload

impl UnsafeUnpin for ContinuePayload

impl Unpin for ContinuePayload

impl UnwindSafe for ContinuePayload

impl RefUnwindSafe for ContinuePayload

impl StructuralPartialEq for ContinuePayload

RunxJsonReport §

pub struct runx_sdk::client::RunxJsonReport { /* ... */ }

Implementations §

impl RunxJsonReport

new

fn new(payload: JsonObject) -> Self

status

fn status(self: &Self) -> Option<&str>

get

fn get(self: &Self, field: &str) -> Option<&JsonValue>

into_payload

fn into_payload(self: Self) -> JsonObject

Trait Implementations §

impl Borrow for RunxJsonReport

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxJsonReport

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunxJsonReport

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunxJsonReport

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunxJsonReport

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxJsonReport

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunxJsonReport

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxJsonReport

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxJsonReport

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunxJsonReport

Output

impl Clone for RunxJsonReport

clone

fn clone(self: &Self) -> RunxJsonReport

impl Debug for RunxJsonReport

impl PartialEq for RunxJsonReport

eq

fn eq(self: &Self, other: &RunxJsonReport) -> bool

impl Send for RunxJsonReport

impl Sync for RunxJsonReport

impl Freeze for RunxJsonReport

impl UnsafeUnpin for RunxJsonReport

impl Unpin for RunxJsonReport

impl UnwindSafe for RunxJsonReport

impl RefUnwindSafe for RunxJsonReport

impl StructuralPartialEq for RunxJsonReport

SkillSearchResult §

pub struct runx_sdk::client::SkillSearchResult { /* ... */ }

Trait Implementations §

impl Borrow for SkillSearchResult

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for SkillSearchResult

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for SkillSearchResult

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for SkillSearchResult

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for SkillSearchResult

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for SkillSearchResult

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for SkillSearchResult

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for SkillSearchResult

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for SkillSearchResult

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for SkillSearchResult

Output

impl Clone for SkillSearchResult

clone

fn clone(self: &Self) -> SkillSearchResult

impl Debug for SkillSearchResult

impl PartialEq for SkillSearchResult

eq

fn eq(self: &Self, other: &SkillSearchResult) -> bool

impl Send for SkillSearchResult

impl Sync for SkillSearchResult

impl Freeze for SkillSearchResult

impl UnsafeUnpin for SkillSearchResult

impl Unpin for SkillSearchResult

impl UnwindSafe for SkillSearchResult

impl RefUnwindSafe for SkillSearchResult

impl StructuralPartialEq for SkillSearchResult

impl Eq for SkillSearchResult