pub struct MutationIntent { /* private fields */ }Expand description
Validated root mutation reason. Local descendant reasons remain optional.
Implementations§
Source§impl MutationIntent
impl MutationIntent
pub fn new(comment: impl Into<String>) -> Result<Self, RequestIntentError>
pub fn from_optional(comment: Option<&str>) -> Result<Self, RequestIntentError>
pub fn comment(&self) -> &str
Trait Implementations§
Source§impl Clone for MutationIntent
impl Clone for MutationIntent
Source§impl Debug for MutationIntent
impl Debug for MutationIntent
impl Eq for MutationIntent
Source§impl PartialEq for MutationIntent
impl PartialEq for MutationIntent
impl StructuralPartialEq for MutationIntent
Auto Trait Implementations§
impl Freeze for MutationIntent
impl RefUnwindSafe for MutationIntent
impl Send for MutationIntent
impl Sync for MutationIntent
impl Unpin for MutationIntent
impl UnsafeUnpin for MutationIntent
impl UnwindSafe for MutationIntent
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