[][src]Struct vf_rs::vf::Agent

pub struct Agent { /* fields omitted */ }

A person or group or organization with economic agency.

ID: http://xmlns.com/foaf/0.1/Agent

Implementations

impl Agent[src]

pub fn image(&self) -> &Option<Url>[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn name(&self) -> &String[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn note(&self) -> &Option<String>[src]

pub fn primary_location(&self) -> &Option<SpatialThing>[src]

The main place an agent is located, often an address where activities occur and mail can be sent. This is usually a mappable geographic location. It also could be a website address, as in the case of agents who have no physical location.

impl Agent[src]

pub fn set_image(&mut self, val: Option<Url>) -> &mut Self[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn set_name(&mut self, val: String) -> &mut Self[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn set_note(&mut self, val: Option<String>) -> &mut Self[src]

pub fn set_primary_location(&mut self, val: Option<SpatialThing>) -> &mut Self[src]

The main place an agent is located, often an address where activities occur and mail can be sent. This is usually a mappable geographic location. It also could be a website address, as in the case of agents who have no physical location.

impl Agent[src]

pub fn image_mut(&mut self) -> &mut Option<Url>[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn name_mut(&mut self) -> &mut String[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn note_mut(&mut self) -> &mut Option<String>[src]

pub fn primary_location_mut(&mut self) -> &mut Option<SpatialThing>[src]

The main place an agent is located, often an address where activities occur and mail can be sent. This is usually a mappable geographic location. It also could be a website address, as in the case of agents who have no physical location.

impl Agent[src]

pub fn builder() -> AgentBuilder[src]

Create an empty builder object for Agent

pub fn into_builder(self) -> AgentBuilder[src]

Turns Agent into AgentBuilder

Trait Implementations

impl Clone for Agent[src]

impl Debug for Agent[src]

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

impl PartialEq<Agent> for Agent[src]

impl Serialize for Agent[src]

impl StructuralPartialEq for Agent[src]

Auto Trait Implementations

impl RefUnwindSafe for Agent

impl Send for Agent

impl Sync for Agent

impl Unpin for Agent

impl UnwindSafe for Agent

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> 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.