pub struct PolicyIntentRequestDetails {
pub body: PolicyIntentRequestDetailsBody,
pub method: PolicyIntentRequestDetailsMethod,
pub url: PolicyIntentRequestDetailsUrl,
}Expand description
Request details for a policy intent.
JSON schema
{
"title": "PolicyIntentRequestDetails",
"description": "Request details for a policy intent.",
"type": "object",
"required": [
"body",
"method",
"url"
],
"properties": {
"body": {
"type": "object",
"properties": {
"name": {
"description": "Name to assign to policy.",
"type": "string",
"maxLength": 50,
"minLength": 1
},
"owner": {
"$ref": "#/components/schemas/OwnerInput"
},
"owner_id": {
"$ref": "#/components/schemas/OwnerIdInput"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyRuleRequestBody"
}
}
}
},
"method": {
"type": "string",
"enum": [
"PATCH"
]
},
"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}$"
}
},
"x-stainless-model": "intents.policy_intent_request_details"
}Fields§
§body: PolicyIntentRequestDetailsBody§method: PolicyIntentRequestDetailsMethod§url: PolicyIntentRequestDetailsUrlTrait Implementations§
Source§impl Clone for PolicyIntentRequestDetails
impl Clone for PolicyIntentRequestDetails
Source§fn clone(&self) -> PolicyIntentRequestDetails
fn clone(&self) -> PolicyIntentRequestDetails
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 Debug for PolicyIntentRequestDetails
impl Debug for PolicyIntentRequestDetails
Source§impl<'de> Deserialize<'de> for PolicyIntentRequestDetails
impl<'de> Deserialize<'de> for PolicyIntentRequestDetails
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<&PolicyIntentRequestDetails> for PolicyIntentRequestDetails
impl From<&PolicyIntentRequestDetails> for PolicyIntentRequestDetails
Source§fn from(value: &PolicyIntentRequestDetails) -> Self
fn from(value: &PolicyIntentRequestDetails) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentRequestDetails
impl RefUnwindSafe for PolicyIntentRequestDetails
impl Send for PolicyIntentRequestDetails
impl Sync for PolicyIntentRequestDetails
impl Unpin for PolicyIntentRequestDetails
impl UnsafeUnpin for PolicyIntentRequestDetails
impl UnwindSafe for PolicyIntentRequestDetails
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