pub struct SlackApiTestRequest {
pub error: Option<String>,
pub foo: Option<String>,
}Fields§
§error: Option<String>§foo: Option<String>Implementations§
Source§impl SlackApiTestRequest
impl SlackApiTestRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiTestRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reset_error(&mut self) -> &mut Self
pub fn reset_error(&mut self) -> &mut Self
Sets error to None.
Sourcepub fn mopt_error(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_error(&mut self, value: Option<String>) -> &mut Self
Sets error to the given Option.
Sourcepub fn with_error(self, value: String) -> Self
pub fn with_error(self, value: String) -> Self
Returns self with error set to Some(value).
Sourcepub fn without_error(self) -> Self
pub fn without_error(self) -> Self
Returns self with error set to None.
Sourcepub fn opt_error(self, value: Option<String>) -> Self
pub fn opt_error(self, value: Option<String>) -> Self
Returns self with error set to the given Option.
Sourcepub fn without_foo(self) -> Self
pub fn without_foo(self) -> Self
Returns self with foo set to None.
Trait Implementations§
Source§impl Clone for SlackApiTestRequest
impl Clone for SlackApiTestRequest
Source§impl Debug for SlackApiTestRequest
impl Debug for SlackApiTestRequest
Source§impl<'de> Deserialize<'de> for SlackApiTestRequest
impl<'de> Deserialize<'de> for SlackApiTestRequest
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<SlackApiTestRequestInit> for SlackApiTestRequest
impl From<SlackApiTestRequestInit> for SlackApiTestRequest
Source§fn from(value: SlackApiTestRequestInit) -> Self
fn from(value: SlackApiTestRequestInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiTestRequest
impl PartialEq for SlackApiTestRequest
Source§impl Serialize for SlackApiTestRequest
impl Serialize for SlackApiTestRequest
impl StructuralPartialEq for SlackApiTestRequest
Auto Trait Implementations§
impl Freeze for SlackApiTestRequest
impl RefUnwindSafe for SlackApiTestRequest
impl Send for SlackApiTestRequest
impl Sync for SlackApiTestRequest
impl Unpin for SlackApiTestRequest
impl UnsafeUnpin for SlackApiTestRequest
impl UnwindSafe for SlackApiTestRequest
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