pub struct StaticResource {
pub resourceinstance: StaticResourceMetadata,
pub tiles: Option<Vec<StaticTile>>,
pub metadata: HashMap<String, String>,
pub cache: Option<Value>,
pub scopes: Option<Value>,
pub tiles_loaded: Option<bool>,
}Expand description
Complete resource data with tiles
Fields§
§resourceinstance: StaticResourceMetadata§tiles: Option<Vec<StaticTile>>§metadata: HashMap<String, String>§cache: Option<Value>§scopes: Option<Value>§tiles_loaded: Option<bool>Implementations§
Source§impl StaticResource
impl StaticResource
Sourcepub fn to_summary(&self) -> StaticResourceSummary
pub fn to_summary(&self) -> StaticResourceSummary
Convert to a summary (for registry storage)
Trait Implementations§
Source§impl Clone for StaticResource
impl Clone for StaticResource
Source§fn clone(&self) -> StaticResource
fn clone(&self) -> StaticResource
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 moreSource§impl Debug for StaticResource
impl Debug for StaticResource
Source§impl<'de> Deserialize<'de> for StaticResource
impl<'de> Deserialize<'de> for StaticResource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StaticResource> for RelatedResourceEntry
impl From<&StaticResource> for RelatedResourceEntry
Source§fn from(resource: &StaticResource) -> Self
fn from(resource: &StaticResource) -> Self
Converts to this type from the input type.
Source§impl From<StaticResource> for ResourceEntry
impl From<StaticResource> for ResourceEntry
Source§fn from(resource: StaticResource) -> Self
fn from(resource: StaticResource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticResource
impl RefUnwindSafe for StaticResource
impl Send for StaticResource
impl Sync for StaticResource
impl Unpin for StaticResource
impl UnsafeUnpin for StaticResource
impl UnwindSafe for StaticResource
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