pub enum ResourceIdExtractConfig {
PathParam {
param: String,
},
JsonPath {
path: String,
},
Header {
name: String,
},
QueryParam {
param: String,
},
}Expand description
Resource ID extraction configuration for state machines
Variants§
PathParam
Extract from path parameter (e.g., “/orders/{order_id}” -> extract “order_id”)
JsonPath
Extract from JSONPath in request body
Header
Extract from header value
QueryParam
Extract from query parameter
Implementations§
Source§impl ResourceIdExtractConfig
impl ResourceIdExtractConfig
Sourcepub fn to_core(&self) -> CoreResourceIdExtract
pub fn to_core(&self) -> CoreResourceIdExtract
Convert to core’s ResourceIdExtract enum
Trait Implementations§
Source§impl Clone for ResourceIdExtractConfig
impl Clone for ResourceIdExtractConfig
Source§fn clone(&self) -> ResourceIdExtractConfig
fn clone(&self) -> ResourceIdExtractConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceIdExtractConfig
impl Debug for ResourceIdExtractConfig
Source§impl<'de> Deserialize<'de> for ResourceIdExtractConfig
impl<'de> Deserialize<'de> for ResourceIdExtractConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourceIdExtractConfig
impl RefUnwindSafe for ResourceIdExtractConfig
impl Send for ResourceIdExtractConfig
impl Sync for ResourceIdExtractConfig
impl Unpin for ResourceIdExtractConfig
impl UnwindSafe for ResourceIdExtractConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more