pub struct RuleIntentCreateRequestDetails {
pub body: PolicyRuleRequestBody,
pub method: RuleIntentCreateRequestDetailsMethod,
pub url: RuleIntentCreateRequestDetailsUrl,
}Expand description
Request details for creating a rule via intent.
JSON schema
{
"title": "RuleIntentCreateRequestDetails",
"description": "Request details for creating a rule via intent.",
"type": "object",
"required": [
"body",
"method",
"url"
],
"properties": {
"body": {
"$ref": "#/components/schemas/PolicyRuleRequestBody"
},
"method": {
"type": "string",
"enum": [
"POST"
]
},
"url": {
"type": "string",
"pattern":
"(?:https:\\/\\/(?:[^/]+\\.privy\\.io|privy\\.io|[^/]+\\.privy-preview\\
.app|privy-preview\\.app)(?:\\/api)?|http:\\/\\/localhost(?::\\d+)?(?:\\
/api)?)\\/v1\\/policies\\/[0-9a-z]{24,32}\\/rules$"
}
},
"x-stainless-model": "intents.rule_intent_create_request_details"
}Fields§
§body: PolicyRuleRequestBody§method: RuleIntentCreateRequestDetailsMethod§url: RuleIntentCreateRequestDetailsUrlTrait Implementations§
Source§impl Clone for RuleIntentCreateRequestDetails
impl Clone for RuleIntentCreateRequestDetails
Source§fn clone(&self) -> RuleIntentCreateRequestDetails
fn clone(&self) -> RuleIntentCreateRequestDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RuleIntentCreateRequestDetails
impl<'de> Deserialize<'de> for RuleIntentCreateRequestDetails
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
Source§impl From<&RuleIntentCreateRequestDetails> for RuleIntentCreateRequestDetails
impl From<&RuleIntentCreateRequestDetails> for RuleIntentCreateRequestDetails
Source§fn from(value: &RuleIntentCreateRequestDetails) -> Self
fn from(value: &RuleIntentCreateRequestDetails) -> Self
Converts to this type from the input type.
Source§impl From<RuleIntentCreateRequestDetails> for RuleIntentRequestDetails
impl From<RuleIntentCreateRequestDetails> for RuleIntentRequestDetails
Source§fn from(value: RuleIntentCreateRequestDetails) -> Self
fn from(value: RuleIntentCreateRequestDetails) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleIntentCreateRequestDetails
impl RefUnwindSafe for RuleIntentCreateRequestDetails
impl Send for RuleIntentCreateRequestDetails
impl Sync for RuleIntentCreateRequestDetails
impl Unpin for RuleIntentCreateRequestDetails
impl UnsafeUnpin for RuleIntentCreateRequestDetails
impl UnwindSafe for RuleIntentCreateRequestDetails
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