pub enum MapkyAppObject {
Review(MapkyAppReview),
Collection(MapkyAppCollection),
Incident(MapkyAppIncident),
GeoCapture(MapkyAppGeoCapture),
Route(MapkyAppRoute),
Sequence(MapkyAppSequence),
}Expand description
A unified enum wrapping all MapkyApp objects.
Variants§
Review(MapkyAppReview)
Collection(MapkyAppCollection)
Incident(MapkyAppIncident)
GeoCapture(MapkyAppGeoCapture)
Route(MapkyAppRoute)
Sequence(MapkyAppSequence)
Implementations§
Source§impl MapkyAppObject
impl MapkyAppObject
Sourcepub fn from_path(
path_segment: &str,
blob: &[u8],
id: &str,
) -> Result<Self, String>
pub fn from_path( path_segment: &str, blob: &[u8], id: &str, ) -> Result<Self, String>
Parse a blob into a MapkyAppObject based on the path segment.
path_segment should be e.g. “reviews”, “collections”, etc.
Note: comments at “posts/” use pubky_app_specs::PubkyAppPost directly
and are not represented in this enum.
Trait Implementations§
Source§impl Clone for MapkyAppObject
impl Clone for MapkyAppObject
Source§fn clone(&self) -> MapkyAppObject
fn clone(&self) -> MapkyAppObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MapkyAppObject
impl RefUnwindSafe for MapkyAppObject
impl Send for MapkyAppObject
impl Sync for MapkyAppObject
impl Unpin for MapkyAppObject
impl UnsafeUnpin for MapkyAppObject
impl UnwindSafe for MapkyAppObject
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