Expand description
Enhanced operation framework with composability and validation support
This module provides the core framework for UPnP operations with advanced features:
- Composable operations that can be chained, batched, or made conditional
- Dual validation strategy (boundary vs comprehensive)
- Fluent builder pattern for operation construction
- Strong type safety with minimal boilerplate
Modules§
- macros
- Declarative macros for UPnP operation and service definitions
Structs§
- Composable
Operation - A composable operation ready for execution
- Operation
Builder - Builder for constructing UPnP operations with configuration
- Operation
Metadata - Metadata about a UPnP operation
Enums§
- Validation
Error - Validation error types
- Validation
Level - Validation levels for operation parameters
Traits§
- Sonos
Operation - Base trait for all Sonos API operations (LEGACY)
- UPnP
Operation - Enhanced UPnP operation trait with composability support
- Validate
- Trait for types that can be validated
Functions§
- assert_
derivable_ arg_ name - Compile-time guard rejecting request field names whose UPnP element name cannot be derived by capitalizing the first character.
- capitalize_
first - Capitalize the first character of a snake_case field name.
- parse_
sonos_ bool - Parse a Sonos UPnP boolean argument out of a SOAP response body.
- response_
field - Read a named response argument and parse it, falling back to the type’s default when the argument is absent or unparseable.
- response_
string - Read a named response argument as an owned string, defaulting to empty.
- response_
text - Read the text content of a named argument out of a SOAP response body.
- validate_
channel - Validate a RenderingControl channel parameter.
- xml_
escape - Escape XML special characters in a string for safe SOAP payload interpolation.