Struct CursorOnTarget
pub struct CursorOnTarget {
    pub uid: String,
    pub stale_time: Option<i32>,
    pub type_string: Option<String>,
    pub how_string: String,
    pub access: Option<String>,
    pub point: Point,
    pub detail: Option<String>,
    /* private fields */
}Expand description
Cursor on Target message
- uid- Unique identifier is some otherwise will create UUID V4
- stale_time- Stale time in seconds, if some. Otherwise default
- type_string- Type string
- how_string- How string
- access- Access i.e. “UNCLASSIFIED”
- point- Point data includes GPS coordinates
- detail- Detail XML
- config- Configuration
Fields§
§uid: String§stale_time: Option<i32>§type_string: Option<String>§how_string: String§access: Option<String>§point: Point§detail: Option<String>Implementations§
§impl CursorOnTarget
 
impl CursorOnTarget
pub const HAE_NONE: f64 = 9999999f64
pub const CE_NONE: f64 = 9999999f64
pub const LE_NONE: f64 = 9999999f64
pub fn new( uid: String, stale_time: Option<i32>, type_string: Option<String>, how_string: String, access: Option<String>, point: Point, ) -> Self
pub fn get_xml_detail(&self) -> String
pub fn set_xml_detail(&mut self, detail: String)
pub fn get_xml(&mut self) -> String
pub fn get_xml_bytes(&mut self) -> Vec<u8> ⓘ
pub fn delete(uid: String) -> String
pub fn delete(uid: String) -> String
Delete a CoT message
§Arguments
- uid- Unique identifier of the CoT message to delete
§Returns
- String- XML text
§Example
<?xml version="1.0" standalone="yes"?>
<event start="2012-01-01T00:00:00Z" time="2012-01-01T00:00:00Z" stale="2020-01-01T00:00:00Z" how="m-g" type="t-x-d-d" uid="does-not-matter-must-be-unique" version="2.0">
    <detail>
        <link uid="the-uid-of-the-map-item-to-remove" relation="none" type="none"/>
        <__forcedelete/>
    </detail>
<point lat="0.0" lon="0.0" ce="9999999" le="9999999" hae="9999999"/>
</event>pub fn get_uid(&self) -> String
Trait Implementations§
§impl Clone for CursorOnTarget
 
impl Clone for CursorOnTarget
§fn clone(&self) -> CursorOnTarget
 
fn clone(&self) -> CursorOnTarget
Returns a copy 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 more§impl Debug for CursorOnTarget
 
impl Debug for CursorOnTarget
Auto Trait Implementations§
impl Freeze for CursorOnTarget
impl RefUnwindSafe for CursorOnTarget
impl Send for CursorOnTarget
impl Sync for CursorOnTarget
impl Unpin for CursorOnTarget
impl UnwindSafe for CursorOnTarget
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