1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v1.1.31
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UiNodeScriptAttributes {
/// The script async type
#[serde(rename = "async")]
pub _async: bool,
/// The script cross origin policy
#[serde(rename = "crossorigin")]
pub crossorigin: String,
/// A unique identifier
#[serde(rename = "id")]
pub id: String,
/// The script's integrity hash
#[serde(rename = "integrity")]
pub integrity: String,
/// NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"script\".
#[serde(rename = "node_type")]
pub node_type: String,
/// Nonce for CSP A nonce you may want to use to improve your Content Security Policy. You do not have to use this value but if you want to improve your CSP policies you may use it. You can also choose to use your own nonce value!
#[serde(rename = "nonce")]
pub nonce: String,
/// The script referrer policy
#[serde(rename = "referrerpolicy")]
pub referrerpolicy: String,
/// The script source
#[serde(rename = "src")]
pub src: String,
/// The script MIME type
#[serde(rename = "type")]
pub _type: String,
}
impl UiNodeScriptAttributes {
pub fn new(_async: bool, crossorigin: String, id: String, integrity: String, node_type: String, nonce: String, referrerpolicy: String, src: String, _type: String) -> UiNodeScriptAttributes {
UiNodeScriptAttributes {
_async,
crossorigin,
id,
integrity,
node_type,
nonce,
referrerpolicy,
src,
_type,
}
}
}