pub struct ParseObject {
pub object_id: Option<String>,
pub created_at: Option<ParseDate>,
pub updated_at: Option<ParseDate>,
pub fields: HashMap<String, Value>,
pub acl: Option<ParseACL>,
pub class_name: String,
}
Fields§
§object_id: Option<String>
§created_at: Option<ParseDate>
§updated_at: Option<ParseDate>
§fields: HashMap<String, Value>
§acl: Option<ParseACL>
§class_name: String
Implementations§
Source§impl ParseObject
impl ParseObject
pub fn new(class_name: &str) -> Self
pub fn set<T: Serialize>(&mut self, field_name: &str, value: T)
pub fn get<T: DeserializeOwned>(&self, field_name: &str) -> Option<T>
pub fn set_acl(&mut self, acl: ParseACL)
pub fn increment(&mut self, field_name: &str, amount: i64)
pub fn decrement(&mut self, field_name: &str, amount: i64)
pub fn add_to_array<T: Serialize>(&mut self, field_name: &str, items: &[T])
pub fn add_unique_to_array<T: Serialize>( &mut self, field_name: &str, items: &[T], )
pub fn remove_from_array<T: Serialize>(&mut self, field_name: &str, items: &[T])
Trait Implementations§
Source§impl Clone for ParseObject
impl Clone for ParseObject
Source§fn clone(&self) -> ParseObject
fn clone(&self) -> ParseObject
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 ParseObject
impl Debug for ParseObject
Source§impl<'de> Deserialize<'de> for ParseObject
impl<'de> Deserialize<'de> for ParseObject
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
Auto Trait Implementations§
impl Freeze for ParseObject
impl RefUnwindSafe for ParseObject
impl Send for ParseObject
impl Sync for ParseObject
impl Unpin for ParseObject
impl UnwindSafe for ParseObject
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