pub struct InputParameter { /* private fields */ }Expand description
Input parameter for Trigger object.
§Fields and Validations
For more details, see the official documentation.
| Field | Type | Required | Validation |
|---|---|---|---|
| name | String | Yes | N/A |
| value | Value | Yes | N/A |
§Example
use slack_messaging::composition_objects::types::InputParameter;
let param = InputParameter::builder()
.name("input_parameter_a")
.value("Value for input param A")
.build()?;
let expected = serde_json::json!({
"name": "input_parameter_a",
"value": "Value for input param A"
});
let json = serde_json::to_value(param).unwrap();
assert_eq!(json, expected);
// If your object has any validation errors, the build method returns Result::Err
let param = InputParameter::builder()
.name("input_parameter_a")
.build();
assert!(param.is_err());Implementations§
Source§impl InputParameter
impl InputParameter
Sourcepub fn builder() -> InputParameterBuilder
pub fn builder() -> InputParameterBuilder
constract InputParameterBuilder object.
Trait Implementations§
Source§impl Clone for InputParameter
impl Clone for InputParameter
Source§fn clone(&self) -> InputParameter
fn clone(&self) -> InputParameter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputParameter
impl Debug for InputParameter
Source§impl PartialEq for InputParameter
impl PartialEq for InputParameter
Source§impl Serialize for InputParameter
impl Serialize for InputParameter
impl StructuralPartialEq for InputParameter
Auto Trait Implementations§
impl Freeze for InputParameter
impl RefUnwindSafe for InputParameter
impl Send for InputParameter
impl Sync for InputParameter
impl Unpin for InputParameter
impl UnwindSafe for InputParameter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)