pub struct DirectiveSeed {
pub content: String,
pub is_active: bool,
pub name: String,
pub priority: i64,
}Expand description
A directive to create when bootstrapping a bank from a template.
JSON schema
{
"title": "DirectiveSeed",
"description": "A directive to create when bootstrapping a bank from a template.",
"type": "object",
"required": [
"content",
"name"
],
"properties": {
"content": {
"title": "Content",
"type": "string"
},
"is_active": {
"title": "Is Active",
"default": true,
"type": "boolean"
},
"name": {
"title": "Name",
"type": "string"
},
"priority": {
"title": "Priority",
"default": 0,
"type": "integer"
}
}
}Fields§
§content: String§is_active: bool§name: String§priority: i64Trait Implementations§
Source§impl Clone for DirectiveSeed
impl Clone for DirectiveSeed
Source§fn clone(&self) -> DirectiveSeed
fn clone(&self) -> DirectiveSeed
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 Debug for DirectiveSeed
impl Debug for DirectiveSeed
Source§impl<'de> Deserialize<'de> for DirectiveSeed
impl<'de> Deserialize<'de> for DirectiveSeed
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<&DirectiveSeed> for DirectiveSeed
impl From<&DirectiveSeed> for DirectiveSeed
Source§fn from(value: &DirectiveSeed) -> Self
fn from(value: &DirectiveSeed) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DirectiveSeed
impl RefUnwindSafe for DirectiveSeed
impl Send for DirectiveSeed
impl Sync for DirectiveSeed
impl Unpin for DirectiveSeed
impl UnsafeUnpin for DirectiveSeed
impl UnwindSafe for DirectiveSeed
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