Enum cyfs_base::ObjectMapContent
source · pub enum ObjectMapContent {
Simple(ObjectMapSimpleContent),
Hub(ObjectMapHubContent),
}
Variants§
Simple(ObjectMapSimpleContent)
Hub(ObjectMapHubContent)
Implementations§
source§impl ObjectMapContent
impl ObjectMapContent
pub fn mode(&self) -> ObjectMapContentMode
pub fn new_simple(content_type: ObjectMapSimpleContentType, depth: u8) -> Self
pub fn new_hub(depth: u8) -> Self
pub fn is_dirty(&self) -> bool
pub fn clear_dirty(&mut self)
pub fn into_simple(self) -> ObjectMapSimpleContent
pub async fn convert_to_hub( self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<Self>
pub fn convert_to_simple<'life0, 'async_recursion>( self, cache: &'life0 ObjectMapOpEnvCacheRef, content_type: ObjectMapSimpleContentType ) -> Pin<Box<dyn Future<Output = BuckyResult<Self>> + Send + 'async_recursion>>where 'life0: 'async_recursion,
pub async fn visit( &self, visitor: &mut impl ObjectMapVisitor ) -> BuckyResult<()>
Trait Implementations§
source§impl Clone for ObjectMapContent
impl Clone for ObjectMapContent
source§fn clone(&self) -> ObjectMapContent
fn clone(&self) -> ObjectMapContent
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 more