pub struct SndFileErrorBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> SndFileErrorBuilder<S>where
S: State,
impl<S> SndFileErrorBuilder<S>where
S: State,
Sourcepub fn build(self) -> SndFileErrorwhere
S: IsComplete,
pub fn build(self) -> SndFileErrorwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn user(self, value: User) -> SndFileErrorBuilder<SetUser<S>>where
<S as State>::User: IsUnset,
pub fn user(self, value: User) -> SndFileErrorBuilder<SetUser<S>>where
<S as State>::User: IsUnset,
Required.
Sourcepub fn chat_item(self, value: AChatItem) -> SndFileErrorBuilder<SetChatItem<S>>where
<S as State>::ChatItem: IsUnset,
pub fn chat_item(self, value: AChatItem) -> SndFileErrorBuilder<SetChatItem<S>>where
<S as State>::ChatItem: IsUnset,
Sourcepub fn maybe_chat_item(
self,
value: Option<AChatItem>,
) -> SndFileErrorBuilder<SetChatItem<S>>where
<S as State>::ChatItem: IsUnset,
pub fn maybe_chat_item(
self,
value: Option<AChatItem>,
) -> SndFileErrorBuilder<SetChatItem<S>>where
<S as State>::ChatItem: IsUnset,
Sourcepub fn file_transfer_meta(
self,
value: FileTransferMeta,
) -> SndFileErrorBuilder<SetFileTransferMeta<S>>where
<S as State>::FileTransferMeta: IsUnset,
pub fn file_transfer_meta(
self,
value: FileTransferMeta,
) -> SndFileErrorBuilder<SetFileTransferMeta<S>>where
<S as State>::FileTransferMeta: IsUnset,
Required.
Sourcepub fn error_message(
self,
value: impl Into<String>,
) -> SndFileErrorBuilder<SetErrorMessage<S>>where
<S as State>::ErrorMessage: IsUnset,
pub fn error_message(
self,
value: impl Into<String>,
) -> SndFileErrorBuilder<SetErrorMessage<S>>where
<S as State>::ErrorMessage: IsUnset,
Required.
Sourcepub fn undocumented(
self,
value: Value,
) -> SndFileErrorBuilder<SetUndocumented<S>>where
<S as State>::Undocumented: IsUnset,
pub fn undocumented(
self,
value: Value,
) -> SndFileErrorBuilder<SetUndocumented<S>>where
<S as State>::Undocumented: IsUnset,
Sourcepub fn maybe_undocumented(
self,
value: Option<Value>,
) -> SndFileErrorBuilder<SetUndocumented<S>>where
<S as State>::Undocumented: IsUnset,
pub fn maybe_undocumented(
self,
value: Option<Value>,
) -> SndFileErrorBuilder<SetUndocumented<S>>where
<S as State>::Undocumented: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SndFileErrorBuilder<S>
impl<S> RefUnwindSafe for SndFileErrorBuilder<S>
impl<S> Send for SndFileErrorBuilder<S>
impl<S> Sync for SndFileErrorBuilder<S>
impl<S> Unpin for SndFileErrorBuilder<S>
impl<S> UnsafeUnpin for SndFileErrorBuilder<S>
impl<S> UnwindSafe for SndFileErrorBuilder<S>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more