pub struct NodesApi {
pub base_url: String,
pub client: Client,
}
Fields§
§base_url: String
§client: Client
Implementations§
Source§impl NodesApi
impl NodesApi
pub fn new(base_url: &str, client: Client) -> Self
pub async fn get_node( &self, ticket: &String, node_id: &String, include: Option<&Vec<String>>, relative_path: Option<&String>, fields: Option<&Vec<String>>, ) -> Result<NodeEntry>
pub async fn update_node( &self, ticket: &String, node_id: &String, include: Option<&Vec<String>>, fields: Option<&Vec<String>>, body: NodeBodyUpdate, ) -> Result<NodeEntry>
pub async fn upload_file( &self, ticket: &String, parent_id: &String, file_path: &String, overwrite: &bool, relative_path: Option<&String>, ) -> Result<NodeEntry>
pub async fn create_secondary_children( &self, ticket: &String, parent_id: &String, child_id: &String, assoc_type: &String, fields: Option<&Vec<String>>, ) -> Result<ChildAssociationEntry>
Auto Trait Implementations§
impl Freeze for NodesApi
impl !RefUnwindSafe for NodesApi
impl Send for NodesApi
impl Sync for NodesApi
impl Unpin for NodesApi
impl !UnwindSafe for NodesApi
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