pub struct PolicyIntentResponseCurrentResourceData {
pub chain_type: PolicyChainType,
pub created_at: f64,
pub id: PolicyIntentResponseCurrentResourceDataId,
pub name: PolicyIntentResponseCurrentResourceDataName,
pub owner_id: Option<String>,
pub rules: Vec<PolicyRuleResponse>,
pub version: PolicyIntentResponseCurrentResourceDataVersion,
}Expand description
Current state of the policy before any changes. If undefined, the resource was deleted and no longer exists
JSON schema
{
"description": "Current state of the policy before any changes. If
undefined, the resource was deleted and no longer exists",
"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: PolicyIntentResponseCurrentResourceDataIdUnique ID of the created policy. This will be the primary identifier when using the policy in the future.
name: PolicyIntentResponseCurrentResourceDataNameName to assign to policy.
owner_id: Option<String>The key quorum ID of the owner of the policy.
rules: Vec<PolicyRuleResponse>§version: PolicyIntentResponseCurrentResourceDataVersionVersion of the policy. Currently, 1.0 is the only version.
Trait Implementations§
Source§impl Clone for PolicyIntentResponseCurrentResourceData
impl Clone for PolicyIntentResponseCurrentResourceData
Source§fn clone(&self) -> PolicyIntentResponseCurrentResourceData
fn clone(&self) -> PolicyIntentResponseCurrentResourceData
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 PolicyIntentResponseCurrentResourceData
impl<'de> Deserialize<'de> for PolicyIntentResponseCurrentResourceData
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<&PolicyIntentResponseCurrentResourceData> for PolicyIntentResponseCurrentResourceData
impl From<&PolicyIntentResponseCurrentResourceData> for PolicyIntentResponseCurrentResourceData
Source§fn from(value: &PolicyIntentResponseCurrentResourceData) -> Self
fn from(value: &PolicyIntentResponseCurrentResourceData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentResponseCurrentResourceData
impl RefUnwindSafe for PolicyIntentResponseCurrentResourceData
impl Send for PolicyIntentResponseCurrentResourceData
impl Sync for PolicyIntentResponseCurrentResourceData
impl Unpin for PolicyIntentResponseCurrentResourceData
impl UnsafeUnpin for PolicyIntentResponseCurrentResourceData
impl UnwindSafe for PolicyIntentResponseCurrentResourceData
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