pub struct SlackApiTestRequest {
pub error: Option<String>,
pub foo: Option<String>,
}
Fields§
§error: Option<String>
§foo: Option<String>
Implementations§
Source§impl SlackApiTestRequest
impl SlackApiTestRequest
pub fn new() -> Self
pub fn error(&mut self, value: String) -> &mut Self
pub fn reset_error(&mut self) -> &mut Self
pub fn mopt_error(&mut self, value: Option<String>) -> &mut Self
pub fn with_error(self, value: String) -> Self
pub fn without_error(self) -> Self
pub fn opt_error(self, value: Option<String>) -> Self
pub fn foo(&mut self, value: String) -> &mut Self
pub fn reset_foo(&mut self) -> &mut Self
pub fn mopt_foo(&mut self, value: Option<String>) -> &mut Self
pub fn with_foo(self, value: String) -> Self
pub fn without_foo(self) -> Self
pub fn opt_foo(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for SlackApiTestRequest
impl Clone for SlackApiTestRequest
Source§fn clone(&self) -> SlackApiTestRequest
fn clone(&self) -> SlackApiTestRequest
Returns a copy 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 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)