pub struct Service { /* private fields */ }Implementations§
Source§impl Service
impl Service
pub fn new(manager: KwebManager) -> Self
pub fn manager(&self) -> &KwebManager
pub fn node(&self, node_id: &str) -> Result<Node, Error>
pub fn file(&self, object_id: &str) -> Result<StoredFile, Error>
pub fn commit_session( &self, input: CommitRequest, ) -> Result<CommitReceipt, Error>
pub fn save_generated_image( &self, bytes: Vec<u8>, file_name: &str, media_type: &str, model: &str, ) -> Result<String, Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Service
impl !UnwindSafe for Service
impl Freeze for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
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