pub struct PolicyIntentResponseActionResultPriorState {
pub chain_type: PolicyChainType,
pub created_at: f64,
pub id: PolicyIntentResponseActionResultPriorStateId,
pub name: PolicyIntentResponseActionResultPriorStateName,
pub owner_id: Option<String>,
pub rules: Vec<PolicyRuleResponse>,
pub version: PolicyIntentResponseActionResultPriorStateVersion,
}Expand description
State of the policy immediately before execution
JSON schema
{
"description": "State of the policy immediately before execution",
"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: PolicyIntentResponseActionResultPriorStateIdUnique ID of the created policy. This will be the primary identifier when using the policy in the future.
name: PolicyIntentResponseActionResultPriorStateNameName to assign to policy.
owner_id: Option<String>The key quorum ID of the owner of the policy.
rules: Vec<PolicyRuleResponse>§version: PolicyIntentResponseActionResultPriorStateVersionVersion of the policy. Currently, 1.0 is the only version.
Trait Implementations§
Source§impl Clone for PolicyIntentResponseActionResultPriorState
impl Clone for PolicyIntentResponseActionResultPriorState
Source§fn clone(&self) -> PolicyIntentResponseActionResultPriorState
fn clone(&self) -> PolicyIntentResponseActionResultPriorState
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 PolicyIntentResponseActionResultPriorState
impl<'de> Deserialize<'de> for PolicyIntentResponseActionResultPriorState
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<&PolicyIntentResponseActionResultPriorState> for PolicyIntentResponseActionResultPriorState
impl From<&PolicyIntentResponseActionResultPriorState> for PolicyIntentResponseActionResultPriorState
Source§fn from(value: &PolicyIntentResponseActionResultPriorState) -> Self
fn from(value: &PolicyIntentResponseActionResultPriorState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentResponseActionResultPriorState
impl RefUnwindSafe for PolicyIntentResponseActionResultPriorState
impl Send for PolicyIntentResponseActionResultPriorState
impl Sync for PolicyIntentResponseActionResultPriorState
impl Unpin for PolicyIntentResponseActionResultPriorState
impl UnsafeUnpin for PolicyIntentResponseActionResultPriorState
impl UnwindSafe for PolicyIntentResponseActionResultPriorState
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