pub struct AttrContract {Show 17 fields
pub version: u32,
pub wealth: String,
pub subsistence: String,
pub bloc: String,
pub tension: String,
pub h3_cell: String,
pub kind: String,
pub name: String,
pub links: String,
pub head: String,
pub mass: String,
pub lane: String,
pub c: String,
pub v: String,
pub e: String,
pub repression: String,
pub zoom: String,
}Available on crate feature
raster only.Expand description
Named spellings for every contract-governed attribute key, plus the
contract version. Owned Strings so a caller may rename any key
(e.g. to match babylon’s own vocabulary) without forking the crate.
Fields§
§version: u32§wealth: String§subsistence: String§bloc: String§tension: String§h3_cell: String§kind: String§name: String§links: String§head: String§mass: String§lane: String§c: String§v: String§e: String§repression: String§zoom: StringTrait Implementations§
Source§impl Clone for AttrContract
impl Clone for AttrContract
Source§impl Debug for AttrContract
impl Debug for AttrContract
Source§impl Default for AttrContract
impl Default for AttrContract
Source§impl<'de> Deserialize<'de> for AttrContract
impl<'de> Deserialize<'de> for AttrContract
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 PartialEq for AttrContract
impl PartialEq for AttrContract
Source§impl Serialize for AttrContract
impl Serialize for AttrContract
impl StructuralPartialEq for AttrContract
Auto Trait Implementations§
impl Forget for AttrContract
impl Freeze for AttrContract
impl Move for AttrContract
impl RefUnwindSafe for AttrContract
impl Send for AttrContractwhere
RawVecInner: Send,
impl Sync for AttrContractwhere
RawVecInner: Sync,
impl Unpin for AttrContract
impl UnsafeUnpin for AttrContract
impl UnwindSafe for AttrContractwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.