[][src]Struct df_st_core::df_world::river::River

pub struct River {
    pub id: i32,
    pub name: Option<String>,
    pub path: Vec<Path>,
    pub end_pos: Option<Coordinate>,
}

An River is a stream of water in the world.

Fields

id: i32

Identifier for the river. id must be unique for the whole world. This value is not given from files but generated after parsing.

name: Option<String>

The name of the river

path: Vec<Path>

The path the stream takes TODO path is upstream of downstream?

end_pos: Option<Coordinate>

The coordinates of the point where the river ends. This is usually where it meets the see or ocean or another river.

Implementations

impl River[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for River[src]

impl Debug for River[src]

impl Default for River[src]

impl<'de> Deserialize<'de> for River[src]

impl Fillable for River[src]

impl Filler<River, River> for River[src]

impl<__S> GraphQLType<__S> for River where
    __S: ScalarValue,
    &'__b __S: ScalarRefValue<'__b>, 
[src]

type Context = ()

The expected context type for this GraphQL type Read more

type TypeInfo = ()

Type that may carry additional schema information Read more

impl Hash for River[src]

impl JsonSchema for River[src]

impl PartialEq<River> for River[src]

impl SchemaExample for River[src]

impl Serialize for River[src]

Auto Trait Implementations

impl RefUnwindSafe for River

impl Send for River

impl Sync for River

impl Unpin for River

impl UnwindSafe for River

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.