#[non_exhaustive]pub struct ParamContentFold {
pub call: String,
pub arg: usize,
}Expand description
Membership in a folded variable-target call: this surface parameter
supplies one argument of the globalVariable/playerVariable call the
rule-content-v1 target renders as. All members of a fold group share
the same call and are contiguous surface parameters; the folded call
occupies the content-argument position of the group’s first member.
The member’s node form follows its declared parameter type: a
Variable-typed parameter supplies the tagged {"variable": "<name>"}
node bound to the declared variable name, and any other parameter
supplies a normal value node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.call: StringThe reserved target call id (globalVariable or playerVariable).
arg: usizeThe argument index inside the folded call this parameter supplies.
Trait Implementations§
Source§impl Clone for ParamContentFold
impl Clone for ParamContentFold
Source§impl Debug for ParamContentFold
impl Debug for ParamContentFold
Source§impl<'de> Deserialize<'de> for ParamContentFold
impl<'de> Deserialize<'de> for ParamContentFold
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
impl Eq for ParamContentFold
Source§impl PartialEq for ParamContentFold
impl PartialEq for ParamContentFold
impl StructuralPartialEq for ParamContentFold
Auto Trait Implementations§
impl Freeze for ParamContentFold
impl RefUnwindSafe for ParamContentFold
impl Send for ParamContentFold
impl Sync for ParamContentFold
impl Unpin for ParamContentFold
impl UnsafeUnpin for ParamContentFold
impl UnwindSafe for ParamContentFold
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