pub struct PolicyIntentResponseActionResultResponseBody {
pub chain_type: PolicyChainType,
pub created_at: f64,
pub id: PolicyIntentResponseActionResultResponseBodyId,
pub name: PolicyIntentResponseActionResultResponseBodyName,
pub owner_id: Option<String>,
pub rules: Vec<PolicyRuleResponse>,
pub version: PolicyIntentResponseActionResultResponseBodyVersion,
}Expand description
PolicyIntentResponseActionResultResponseBody
JSON schema
{
"type": "object",
"required": [
"chain_type",
"created_at",
"id",
"name",
"owner_id",
"rules",
"version"
],
"properties": {
"chain_type": {
"$ref": "#/components/schemas/PolicyChainType"
},
"created_at": {
"description": "Unix timestamp of when the policy was created in
milliseconds.",
"type": "number"
},
"id": {
"description": "Unique ID of the created policy. This will be the
primary identifier when using the policy in the future.",
"type": "string",
"maxLength": 24,
"minLength": 24
},
"name": {
"description": "Name to assign to policy.",
"type": "string",
"maxLength": 50,
"minLength": 1
},
"owner_id": {
"description": "The key quorum ID of the owner of the policy.",
"type": [
"string",
"null"
]
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyRuleResponse"
}
},
"version": {
"description": "Version of the policy. Currently, 1.0 is the only
version.",
"type": "string",
"enum": [
"1.0"
]
}
}
}Fields§
§chain_type: PolicyChainType§created_at: f64§id: PolicyIntentResponseActionResultResponseBodyIdUnique ID of the created policy. This will be the primary identifier when using the policy in the future.
name: PolicyIntentResponseActionResultResponseBodyNameName to assign to policy.
owner_id: Option<String>The key quorum ID of the owner of the policy.
rules: Vec<PolicyRuleResponse>§version: PolicyIntentResponseActionResultResponseBodyVersionVersion of the policy. Currently, 1.0 is the only version.
Trait Implementations§
Source§impl Clone for PolicyIntentResponseActionResultResponseBody
impl Clone for PolicyIntentResponseActionResultResponseBody
Source§fn clone(&self) -> PolicyIntentResponseActionResultResponseBody
fn clone(&self) -> PolicyIntentResponseActionResultResponseBody
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<'de> Deserialize<'de> for PolicyIntentResponseActionResultResponseBody
impl<'de> Deserialize<'de> for PolicyIntentResponseActionResultResponseBody
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<&PolicyIntentResponseActionResultResponseBody> for PolicyIntentResponseActionResultResponseBody
impl From<&PolicyIntentResponseActionResultResponseBody> for PolicyIntentResponseActionResultResponseBody
Source§fn from(value: &PolicyIntentResponseActionResultResponseBody) -> Self
fn from(value: &PolicyIntentResponseActionResultResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentResponseActionResultResponseBody
impl RefUnwindSafe for PolicyIntentResponseActionResultResponseBody
impl Send for PolicyIntentResponseActionResultResponseBody
impl Sync for PolicyIntentResponseActionResultResponseBody
impl Unpin for PolicyIntentResponseActionResultResponseBody
impl UnsafeUnpin for PolicyIntentResponseActionResultResponseBody
impl UnwindSafe for PolicyIntentResponseActionResultResponseBody
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