[−][src]Struct butane_core::ObjectState
Used internally by butane to track state about the object.
Includes information such as whether it has actually been created
in the database yet. Butane automatically creates the field
state: ObjectState
on #[model]
structs. When initializing the
state field, use ObjectState::default()
.
Fields
saved: bool
Trait Implementations
impl Clone for ObjectState
[src]
pub fn clone(&self) -> ObjectState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ObjectState
[src]
impl Default for ObjectState
[src]
pub fn default() -> ObjectState
[src]
impl Eq for ObjectState
[src]
impl PartialEq<ObjectState> for ObjectState
[src]
Two ObjectState
s always compare as equal. This effectively
removes ObjectState
from participating in equality tests between
two objects
Auto Trait Implementations
impl RefUnwindSafe for ObjectState
[src]
impl Send for ObjectState
[src]
impl Sync for ObjectState
[src]
impl Unpin for ObjectState
[src]
impl UnwindSafe for ObjectState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,