DecAppObj

Trait DecAppObj 

Source
pub trait DecAppObj {
Show 18 methods // Required methods fn create(owner: ObjectId, id: &str) -> Self; fn name(&self) -> &str; fn app_desc(&self) -> Option<&str>; fn icon(&self) -> Option<&str>; fn find_version( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<(&str, String)>; fn find_source_by_semver( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<ObjectId>; fn find_source(&self, version: &str) -> BuckyResult<ObjectId>; fn find_source_desc_by_semver( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<Option<&str>>; fn find_source_desc(&self, version: &str) -> Option<&str>; fn remove_source(&mut self, version: &str); fn clear_source(&mut self); fn set_source( &mut self, version: String, id: ObjectId, desc: Option<String>, ); fn source(&self) -> &HashMap<String, ObjectId>; fn find_tag(&self, tag: &str) -> BuckyResult<&str>; fn set_tag(&mut self, tag: String, version: String); fn remove_tag(&mut self, tag: &str); fn tags(&self) -> &HashMap<String, String>; fn generate_id(owner: ObjectId, id: &str) -> ObjectId;
}

Required Methods§

Source

fn create(owner: ObjectId, id: &str) -> Self

Source

fn name(&self) -> &str

Source

fn app_desc(&self) -> Option<&str>

Source

fn icon(&self) -> Option<&str>

Source

fn find_version( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<(&str, String)>

Source

fn find_source_by_semver( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<ObjectId>

Source

fn find_source(&self, version: &str) -> BuckyResult<ObjectId>

Source

fn find_source_desc_by_semver( &self, req_semver: &str, pre: Option<&str>, ) -> BuckyResult<Option<&str>>

Source

fn find_source_desc(&self, version: &str) -> Option<&str>

Source

fn remove_source(&mut self, version: &str)

Source

fn clear_source(&mut self)

Source

fn set_source(&mut self, version: String, id: ObjectId, desc: Option<String>)

Source

fn source(&self) -> &HashMap<String, ObjectId>

Source

fn find_tag(&self, tag: &str) -> BuckyResult<&str>

Source

fn set_tag(&mut self, tag: String, version: String)

Source

fn remove_tag(&mut self, tag: &str)

Source

fn tags(&self) -> &HashMap<String, String>

Source

fn generate_id(owner: ObjectId, id: &str) -> ObjectId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§