Skip to main content

MqRestSession

Struct MqRestSession 

Source
pub struct MqRestSession {
    pub last_response_payload: Option<HashMap<String, Value>>,
    pub last_response_text: Option<String>,
    pub last_http_status: Option<u16>,
    pub last_command_payload: Option<HashMap<String, Value>>,
    /* private fields */
}
Expand description

Session wrapper for MQ REST admin calls.

Fields§

§last_response_payload: Option<HashMap<String, Value>>

The parsed JSON payload from the most recent command.

§last_response_text: Option<String>

The raw HTTP response body from the most recent command.

§last_http_status: Option<u16>

The HTTP status code from the most recent command.

§last_command_payload: Option<HashMap<String, Value>>

The runCommandJSON request payload sent for the most recent command.

Implementations§

Source§

impl MqRestSession

Source

pub fn alter_authinfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER AUTHINFO command.

Source

pub fn alter_buffpool( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER BUFFPOOL command.

Source

pub fn alter_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER CFSTRUCT command.

Source

pub fn alter_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER CHANNEL command.

Source

pub fn alter_comminfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER COMMINFO command.

Source

pub fn alter_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER LISTENER command.

Source

pub fn alter_namelist( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER NAMELIST command.

Source

pub fn alter_process( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER PROCESS command.

Source

pub fn alter_psid( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER PSID command.

Source

pub fn alter_qalias( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER QALIAS command.

Source

pub fn alter_qlocal( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER QLOCAL command.

Source

pub fn alter_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER QMGR command.

Source

pub fn alter_qmodel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER QMODEL command.

Source

pub fn alter_qremote( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER QREMOTE command.

Source

pub fn alter_security( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER SECURITY command.

Source

pub fn alter_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER SERVICE command.

Source

pub fn alter_smds( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER SMDS command.

Source

pub fn alter_stgclass( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER STGCLASS command.

Source

pub fn alter_sub( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER SUB command.

Source

pub fn alter_topic( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER TOPIC command.

Source

pub fn alter_trace( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ALTER TRACE command.

Source

pub fn archive_log( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC ARCHIVE LOG command.

Source

pub fn backup_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC BACKUP CFSTRUCT command.

Source

pub fn clear_qlocal( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC CLEAR QLOCAL command.

Source

pub fn clear_topicstr( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC CLEAR TOPICSTR command.

Source

pub fn define_authinfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE AUTHINFO command.

Source

pub fn define_buffpool( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE BUFFPOOL command.

Source

pub fn define_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE CFSTRUCT command.

Source

pub fn define_channel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE CHANNEL command.

Source

pub fn define_comminfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE COMMINFO command.

Source

pub fn define_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE LISTENER command.

Source

pub fn define_log( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE LOG command.

Source

pub fn define_maxsmsgs( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE MAXSMSGS command.

Source

pub fn define_namelist( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE NAMELIST command.

Source

pub fn define_process( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE PROCESS command.

Source

pub fn define_psid( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE PSID command.

Source

pub fn define_qalias( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE QALIAS command.

Source

pub fn define_qlocal( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE QLOCAL command.

Source

pub fn define_qmodel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE QMODEL command.

Source

pub fn define_qremote( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE QREMOTE command.

Source

pub fn define_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE SERVICE command.

Source

pub fn define_stgclass( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE STGCLASS command.

Source

pub fn define_sub( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE SUB command.

Source

pub fn define_topic( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DEFINE TOPIC command.

Source

pub fn delete_authinfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE AUTHINFO command.

Source

pub fn delete_authrec( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE AUTHREC command.

Source

pub fn delete_buffpool( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE BUFFPOOL command.

Source

pub fn delete_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE CFSTRUCT command.

Source

pub fn delete_channel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE CHANNEL command.

Source

pub fn delete_comminfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE COMMINFO command.

Source

pub fn delete_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE LISTENER command.

Source

pub fn delete_namelist( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE NAMELIST command.

Source

pub fn delete_policy( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE POLICY command.

Source

pub fn delete_process( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE PROCESS command.

Source

pub fn delete_psid( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE PSID command.

Source

pub fn delete_qalias( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE QALIAS command.

Source

pub fn delete_qlocal( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE QLOCAL command.

Source

pub fn delete_qmodel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE QMODEL command.

Source

pub fn delete_qremote( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE QREMOTE command.

Source

pub fn delete_queue( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE QUEUE command.

Source

pub fn delete_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE SERVICE command.

Source

pub fn delete_stgclass( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE STGCLASS command.

Source

pub fn delete_sub( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE SUB command.

Source

pub fn delete_topic( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC DELETE TOPIC command.

Source

pub fn display_apstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY APSTATUS command.

Source

pub fn display_archive( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY ARCHIVE command.

Source

pub fn display_authinfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY AUTHINFO command.

Source

pub fn display_authrec( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY AUTHREC command.

Source

pub fn display_authserv( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY AUTHSERV command.

Source

pub fn display_cfstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CFSTATUS command.

Source

pub fn display_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CFSTRUCT command.

Source

pub fn display_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CHANNEL command.

Source

pub fn display_chinit( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CHINIT command.

Source

pub fn display_chlauth( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CHLAUTH command.

Source

pub fn display_chstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CHSTATUS command.

Source

pub fn display_clusqmgr( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CLUSQMGR command.

Source

pub fn display_cmdserv( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<Option<HashMap<String, Value>>>

Execute the MQSC DISPLAY CMDSERV command.

Source

pub fn display_comminfo( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY COMMINFO command.

Source

pub fn display_conn( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY CONN command.

Source

pub fn display_entauth( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY ENTAUTH command.

Source

pub fn display_group( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY GROUP command.

Source

pub fn display_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY LISTENER command.

Source

pub fn display_log( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY LOG command.

Source

pub fn display_lsstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY LSSTATUS command.

Source

pub fn display_maxsmsgs( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY MAXSMSGS command.

Source

pub fn display_namelist( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY NAMELIST command.

Source

pub fn display_policy( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY POLICY command.

Source

pub fn display_process( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY PROCESS command.

Source

pub fn display_pubsub( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY PUBSUB command.

Source

pub fn display_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<Option<HashMap<String, Value>>>

Execute the MQSC DISPLAY QMGR command.

Source

pub fn display_qmstatus( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<Option<HashMap<String, Value>>>

Execute the MQSC DISPLAY QMSTATUS command.

Source

pub fn display_qstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY QSTATUS command.

Source

pub fn display_queue( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY QUEUE command.

Source

pub fn display_sbstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SBSTATUS command.

Source

pub fn display_security( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SECURITY command.

Source

pub fn display_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SERVICE command.

Source

pub fn display_smds( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SMDS command.

Source

pub fn display_smdsconn( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SMDSCONN command.

Source

pub fn display_stgclass( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY STGCLASS command.

Source

pub fn display_sub( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SUB command.

Source

pub fn display_svstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SVSTATUS command.

Source

pub fn display_system( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY SYSTEM command.

Source

pub fn display_tcluster( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY TCLUSTER command.

Source

pub fn display_thread( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY THREAD command.

Source

pub fn display_topic( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY TOPIC command.

Source

pub fn display_tpstatus( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY TPSTATUS command.

Source

pub fn display_trace( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY TRACE command.

Source

pub fn display_usage( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, where_clause: Option<&str>, ) -> Result<Vec<HashMap<String, Value>>>

Execute the MQSC DISPLAY USAGE command.

Source

pub fn move_qlocal( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC MOVE QLOCAL command.

Source

pub fn ping_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC PING CHANNEL command.

Source

pub fn ping_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC PING QMGR command.

Source

pub fn purge_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC PURGE CHANNEL command.

Source

pub fn recover_bsds( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RECOVER BSDS command.

Source

pub fn recover_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RECOVER CFSTRUCT command.

Source

pub fn refresh_cluster( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC REFRESH CLUSTER command.

Source

pub fn refresh_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC REFRESH QMGR command.

Source

pub fn refresh_security( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC REFRESH SECURITY command.

Source

pub fn reset_cfstruct( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET CFSTRUCT command.

Source

pub fn reset_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET CHANNEL command.

Source

pub fn reset_cluster( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET CLUSTER command.

Source

pub fn reset_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET QMGR command.

Source

pub fn reset_qstats( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET QSTATS command.

Source

pub fn reset_smds( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET SMDS command.

Source

pub fn reset_tpipe( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESET TPIPE command.

Source

pub fn resolve_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESOLVE CHANNEL command.

Source

pub fn resolve_indoubt( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESOLVE INDOUBT command.

Source

pub fn resume_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RESUME QMGR command.

Source

pub fn rverify_security( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC RVERIFY SECURITY command.

Source

pub fn set_archive( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET ARCHIVE command.

Source

pub fn set_authrec( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET AUTHREC command.

Source

pub fn set_chlauth( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET CHLAUTH command.

Source

pub fn set_log( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET LOG command.

Source

pub fn set_policy( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET POLICY command.

Source

pub fn set_system( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SET SYSTEM command.

Source

pub fn start_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START CHANNEL command.

Source

pub fn start_chinit( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START CHINIT command.

Source

pub fn start_cmdserv( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START CMDSERV command.

Source

pub fn start_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START LISTENER command.

Source

pub fn start_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START QMGR command.

Source

pub fn start_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START SERVICE command.

Source

pub fn start_smdsconn( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START SMDSCONN command.

Source

pub fn start_trace( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC START TRACE command.

Source

pub fn stop_channel( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP CHANNEL command.

Source

pub fn stop_chinit( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP CHINIT command.

Source

pub fn stop_cmdserv( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP CMDSERV command.

Source

pub fn stop_conn( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP CONN command.

Source

pub fn stop_listener( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP LISTENER command.

Source

pub fn stop_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP QMGR command.

Source

pub fn stop_service( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP SERVICE command.

Source

pub fn stop_smdsconn( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP SMDSCONN command.

Source

pub fn stop_trace( &mut self, name: Option<&str>, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC STOP TRACE command.

Source

pub fn suspend_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, response_parameters: Option<&[&str]>, ) -> Result<()>

Execute the MQSC SUSPEND QMGR command.

Source§

impl MqRestSession

Source

pub fn ensure_qmgr( &mut self, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure the queue manager has the specified attributes.

§Errors

Returns an error if the DISPLAY or ALTER command fails.

Source

pub fn ensure_qlocal( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a local queue exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_qremote( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a remote queue exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_qalias( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure an alias queue exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_qmodel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a model queue exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_channel( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a channel exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_authinfo( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure an authentication information object exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_listener( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a listener exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_namelist( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a namelist exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_process( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a process exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_service( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a service exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_topic( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a topic exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_sub( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a subscription exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_stgclass( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a storage class exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_comminfo( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a communication information object exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source

pub fn ensure_cfstruct( &mut self, name: &str, request_parameters: Option<&HashMap<String, Value>>, ) -> Result<EnsureResult>

Ensure a CF structure exists with the specified attributes.

§Errors

Returns an error if the DISPLAY, DEFINE, or ALTER command fails.

Source§

impl MqRestSession

Source

pub fn builder( rest_base_url: impl Into<String>, qmgr_name: impl Into<String>, credentials: Credentials, ) -> MqRestSessionBuilder

Create a builder for constructing a session.

Source

pub fn qmgr_name(&self) -> &str

The queue manager name this session targets.

Source

pub fn gateway_qmgr(&self) -> Option<&str>

The gateway queue manager name, or None for direct access.

Source§

impl MqRestSession

Source

pub fn start_channel_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Start a channel and wait until it is running.

§Errors

Returns an error if the START command fails or the channel does not reach RUNNING within the timeout.

Source

pub fn stop_channel_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop a channel and wait until it is stopped.

§Errors

Returns an error if the STOP command fails or the channel does not reach STOPPED within the timeout.

Source

pub fn restart_channel( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop then start a channel, waiting for each phase.

§Errors

Returns an error if either the stop or start phase fails or times out.

Source

pub fn start_listener_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Start a listener and wait until it is running.

§Errors

Returns an error if the START command fails or the listener does not reach RUNNING within the timeout.

Source

pub fn stop_listener_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop a listener and wait until it is stopped.

§Errors

Returns an error if the STOP command fails or the listener does not reach STOPPED within the timeout.

Source

pub fn restart_listener( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop then start a listener, waiting for each phase.

§Errors

Returns an error if either the stop or start phase fails or times out.

Source

pub fn start_service_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Start a service and wait until it is running.

§Errors

Returns an error if the START command fails or the service does not reach RUNNING within the timeout.

Source

pub fn stop_service_sync( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop a service and wait until it is stopped.

§Errors

Returns an error if the STOP command fails or the service does not reach STOPPED within the timeout.

Source

pub fn restart_service( &mut self, name: &str, config: Option<SyncConfig>, ) -> Result<SyncResult>

Stop then start a service, waiting for each phase.

§Errors

Returns an error if either the stop or start phase fails or times out.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more