Expand description
Async Rust client for the ManageEngine ServiceDesk Plus REST API v3.
§Quick Start
use sdp_request_client::{ServiceDesk, ServiceDeskOptions, Credentials};
use reqwest::Url;
let client = ServiceDesk::new(
Url::parse("https://sdp.example.com")?,
Credentials::Token { token: "your-token".into() },
ServiceDeskOptions::default(),
);
// Search tickets
let tickets = client.tickets().search().open().limit(10).fetch().await?;
// Create a ticket
let response = client.tickets()
.create()
.subject("Server issue")
.requester("John Doe")
.send()
.await?;
// Ticket operations
client.ticket(12345).add_note("Investigating...").await?;
client.ticket(12345).close("Resolved").await?;See ServiceDesk for the main entry point.
Structs§
- Attachment
- Create
Ticket Data - Criteria
- Criteria structure for building search queries. This structure allows for complex nested criteria using logical operators. The inner field, condition, and value define a single search condition. The children field allows for nesting additional criteria, combined using the specified logical operator.
- Detailed
Ticket - Edit
Ticket Data - Name
Wrapper - Note
- Note
Builder - Builder for adding notes with custom settings.
- Note
Data - NoteID
- Type-safe wrapper for Note ID in SDP
- Note
Response - Priority
- Resolution
- Service
Desk - Main client for interacting with ServiceDesk Plus API.
- Service
Desk Options - Configuration options for the ServiceDesk client
- Size
Info - Status
- Ticket
Client - Client for single ticket operations (get, close, assign, notes, merge).
- Ticket
Create Builder - Builder for creating tickets.
- Ticket
Data - TicketID
- Type-safe wrapper for Ticket ID in SDP
- Ticket
Response - Ticket
Search Builder - Builder for searching tickets.
- Tickets
Client - Client for ticket collection operations (search, create, delete, update).
- Time
Entry - UserID
- Type-safe wrapper for User ID in SDP
- User
Info
Enums§
- Condition
- Condition enum for specifying search conditions in criteria. Used in the Criteria struct to define how to compare field values.
- Credentials
- Error
- Logical
Op - Logical operators for combining multiple criteria.
- SdpError
Code - SDP API error codes
- Security
- Security options for the ServiceDesk client Not finished yet!!
- Ticket
Status - Ticket status filter values.