pub struct LayerRelationship { /* private fields */ }Expand description
Relationship to another layer or table in the service.
§ESRI Documentation
Source: https://developers.arcgis.com/rest/services-reference/enterprise/layer-feature-service/
Each layer or table can participate in one or more relationship classes.
The relationships array in a layer definition lists the relationships
that this layer participates in.
§Example from ESRI
{
"id": 2,
"role": "esriRelRoleOrigin",
"keyField": "GlobalID",
"cardinality": "esriRelCardinalityOneToMany",
"relatedTableId": 3,
"name": "Buildings_Permits"
}Implementations§
Source§impl LayerRelationship
Auto-generated by derive_getters::Getters.
impl LayerRelationship
Auto-generated by derive_getters::Getters.
Sourcepub fn role(&self) -> &RelationshipRole
pub fn role(&self) -> &RelationshipRole
Role of this layer in the relationship.
Sourcepub fn cardinality(&self) -> &RelationshipCardinality
pub fn cardinality(&self) -> &RelationshipCardinality
Cardinality of the relationship.
ID of the related layer or table.
Sourcepub fn composite_key_field_name(&self) -> &Option<String>
pub fn composite_key_field_name(&self) -> &Option<String>
Composite key field name (for composite key relationships).
Trait Implementations§
Source§impl Clone for LayerRelationship
impl Clone for LayerRelationship
Source§fn clone(&self) -> LayerRelationship
fn clone(&self) -> LayerRelationship
Returns a duplicate 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 moreSource§impl Debug for LayerRelationship
impl Debug for LayerRelationship
Source§impl Default for LayerRelationship
impl Default for LayerRelationship
Source§impl<'de> Deserialize<'de> for LayerRelationship
impl<'de> Deserialize<'de> for LayerRelationship
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 LayerRelationship
impl PartialEq for LayerRelationship
Source§impl Serialize for LayerRelationship
impl Serialize for LayerRelationship
impl Eq for LayerRelationship
impl StructuralPartialEq for LayerRelationship
Auto Trait Implementations§
impl Freeze for LayerRelationship
impl RefUnwindSafe for LayerRelationship
impl Send for LayerRelationship
impl Sync for LayerRelationship
impl Unpin for LayerRelationship
impl UnsafeUnpin for LayerRelationship
impl UnwindSafe for LayerRelationship
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.