pub struct XoProcedures { /* private fields */ }
Implementations§
Source§impl XoProcedures
impl XoProcedures
Sourcepub async fn get_all_objects<R: DeserializeOwned>(
&self,
filter: impl Into<Option<Map<String, JsonValue>>>,
limit: impl Into<Option<usize>>,
) -> Result<R, RpcError>
pub async fn get_all_objects<R: DeserializeOwned>( &self, filter: impl Into<Option<Map<String, JsonValue>>>, limit: impl Into<Option<usize>>, ) -> Result<R, RpcError>
Get all objects from server
R
is a type that can hold that entire result set with all different typesfilter
is an optional filterlimit
is an optional max limit on number of results xo-cli: xo.getAllObjects [filter=
Sourcepub async fn get_objects<R: XoObjectMap>(
&self,
filter: impl Into<Option<Map<String, JsonValue>>>,
limit: impl Into<Option<usize>>,
) -> Result<R, RpcError>
pub async fn get_objects<R: XoObjectMap>( &self, filter: impl Into<Option<Map<String, JsonValue>>>, limit: impl Into<Option<usize>>, ) -> Result<R, RpcError>
Get all objects of specified type from server
R
is a type that can represent that collection of objectsfilter
is an optional filterlimit
is an optional max limit on number of results
Sourcepub async fn get_object<R: XoObject>(
&self,
id: R::IdType,
) -> Result<Option<R>, GetSingleObjectError>where
R::IdType: Ord,
pub async fn get_object<R: XoObject>(
&self,
id: R::IdType,
) -> Result<Option<R>, GetSingleObjectError>where
R::IdType: Ord,
Get single object of specified type from server
R
is a type that can represent that type of objectid
is the id of the object
Auto Trait Implementations§
impl Freeze for XoProcedures
impl !RefUnwindSafe for XoProcedures
impl Send for XoProcedures
impl Sync for XoProcedures
impl Unpin for XoProcedures
impl !UnwindSafe for XoProcedures
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