pub struct SegmentDraft {Show 19 fields
pub geometry: LineString,
pub junctions: JunctionPolicy,
pub turn_ref: Option<String>,
pub junction_keys: Option<[JunctionKey; 2]>,
pub turn_restrictions: Vec<TurnRestrictionDraft>,
pub way_kind: WayKind,
pub realm: WayRealm,
pub geometry_claim: GeometryClaim,
pub crossing_control: CrossingControl,
pub standing: TrailStanding,
pub marking: TrailMarking,
pub terrain: Terrain,
pub terrain_confidence: Option<f64>,
pub surface: Option<String>,
pub access: Access,
pub travel: EdgeTravel,
pub road_exposure: f64,
pub confidence: f64,
pub provenance: Vec<Provenance>,
}Fields§
§geometry: LineString§junctions: JunctionPolicy§turn_ref: Option<String>§junction_keys: Option<[JunctionKey; 2]>Provider-owned endpoint identity. When present, coordinates are shape; only equal keys join topology.
turn_restrictions: Vec<TurnRestrictionDraft>§way_kind: WayKind§realm: WayRealm§geometry_claim: GeometryClaim§crossing_control: CrossingControl§standing: TrailStanding§marking: TrailMarking§terrain: Terrain§terrain_confidence: Option<f64>§surface: Option<String>§access: Access§travel: EdgeTravel§road_exposure: f64§confidence: f64§provenance: Vec<Provenance>Implementations§
Source§impl SegmentDraft
impl SegmentDraft
Sourcepub fn fragment(&self, geometry: LineString) -> Self
pub fn fragment(&self, geometry: LineString) -> Self
Cut source geometry without counterfeiting provider-owned junctions. Artificial endpoints are namespaced to this source span, so coincident clips of distinct facilities remain distinct topology.
Trait Implementations§
Source§impl Clone for SegmentDraft
impl Clone for SegmentDraft
Source§fn clone(&self) -> SegmentDraft
fn clone(&self) -> SegmentDraft
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 SegmentDraft
impl Debug for SegmentDraft
Source§impl<'de> Deserialize<'de> for SegmentDraft
impl<'de> Deserialize<'de> for SegmentDraft
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 SegmentDraft
impl PartialEq for SegmentDraft
Source§impl Serialize for SegmentDraft
impl Serialize for SegmentDraft
impl StructuralPartialEq for SegmentDraft
Auto Trait Implementations§
impl Freeze for SegmentDraft
impl RefUnwindSafe for SegmentDraft
impl Send for SegmentDraft
impl Sync for SegmentDraft
impl Unpin for SegmentDraft
impl UnsafeUnpin for SegmentDraft
impl UnwindSafe for SegmentDraft
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