pub struct BeamListItem {
pub events: Vec<Id>,
pub hooks: Vec<BeamListItemHooksItem>,
pub inner: Option<BeamList>,
}Expand description
BeamListItem
JSON schema
{
"type": "object",
"required": [
"events"
],
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/id"
}
},
"hooks": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"event"
],
"properties": {
"direction": {
"type": "string",
"enum": [
"left",
"right"
]
},
"event": {
"$ref": "#/$defs/id"
}
},
"additionalProperties": false
}
},
"inner": {
"$ref": "#/$defs/beam-list"
}
},
"additionalProperties": false
}Fields§
§events: Vec<Id>§hooks: Vec<BeamListItemHooksItem>§inner: Option<BeamList>Implementations§
Source§impl BeamListItem
impl BeamListItem
pub fn builder() -> BeamListItem
Trait Implementations§
Source§impl Clone for BeamListItem
impl Clone for BeamListItem
Source§fn clone(&self) -> BeamListItem
fn clone(&self) -> BeamListItem
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 BeamListItem
impl Debug for BeamListItem
Source§impl<'de> Deserialize<'de> for BeamListItem
impl<'de> Deserialize<'de> for BeamListItem
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<&BeamListItem> for BeamListItem
impl From<&BeamListItem> for BeamListItem
Source§fn from(value: &BeamListItem) -> Self
fn from(value: &BeamListItem) -> Self
Converts to this type from the input type.
Source§impl From<BeamListItem> for BeamListItem
impl From<BeamListItem> for BeamListItem
Source§fn from(value: BeamListItem) -> Self
fn from(value: BeamListItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for BeamListItem
impl Serialize for BeamListItem
Source§impl TryFrom<BeamListItem> for BeamListItem
impl TryFrom<BeamListItem> for BeamListItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BeamListItem) -> Result<Self, ConversionError>
fn try_from(value: BeamListItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BeamListItem
impl RefUnwindSafe for BeamListItem
impl Send for BeamListItem
impl Sync for BeamListItem
impl Unpin for BeamListItem
impl UnwindSafe for BeamListItem
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