[][src]Enum juno::models::BaseMessage

pub enum BaseMessage {
    RegisterModuleRequest {
        request_id: String,
        module_id: String,
        version: String,
        dependencies: HashMap<String, String>,
    },
    RegisterModuleResponse {
        request_id: String,
    },
    FunctionCallRequest {
        request_id: String,
        function: String,
        arguments: HashMap<String, Value>,
    },
    FunctionCallResponse {
        request_id: String,
        data: Value,
    },
    RegisterHookRequest {
        request_id: String,
        hook: String,
    },
    RegisterHookResponse {
        request_id: String,
    },
    TriggerHookRequest {
        request_id: String,
        hook: String,
    },
    TriggerHookResponse {
        request_id: String,
    },
    DeclareFunctionRequest {
        request_id: String,
        function: String,
    },
    DeclareFunctionResponse {
        request_id: String,
        function: String,
    },
    Error {
        request_id: String,
        error: u32,
    },
    Unknown {
        request_id: String,
    },
}

Variants

RegisterModuleRequest

Fields of RegisterModuleRequest

request_id: Stringmodule_id: Stringversion: Stringdependencies: HashMap<String, String>
RegisterModuleResponse

Fields of RegisterModuleResponse

request_id: String
FunctionCallRequest

Fields of FunctionCallRequest

request_id: Stringfunction: Stringarguments: HashMap<String, Value>
FunctionCallResponse

Fields of FunctionCallResponse

request_id: Stringdata: Value
RegisterHookRequest

Fields of RegisterHookRequest

request_id: Stringhook: String
RegisterHookResponse

Fields of RegisterHookResponse

request_id: String
TriggerHookRequest

Fields of TriggerHookRequest

request_id: Stringhook: String
TriggerHookResponse

Fields of TriggerHookResponse

request_id: String
DeclareFunctionRequest

Fields of DeclareFunctionRequest

request_id: Stringfunction: String
DeclareFunctionResponse

Fields of DeclareFunctionResponse

request_id: Stringfunction: String
Error

Fields of Error

request_id: Stringerror: u32
Unknown

Fields of Unknown

request_id: String

Methods

impl BaseMessage[src]

pub fn get_type(&self) -> u64[src]

pub fn get_request_id(&self) -> &String[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.