pub struct Agent { /* private fields */ }
Expand description
An entity that can commit to and/or perform economic and/or ecological activity under its own power or authority.
Implementations§
source§impl Agent
impl Agent
sourcepub fn image_mut(&mut self) -> &mut Option<Url>
pub fn image_mut(&mut self) -> &mut Option<Url>
The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.
sourcepub fn name_mut(&mut self) -> &mut String
pub fn name_mut(&mut self) -> &mut String
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note_mut(&mut self) -> &mut Option<String>
sourcepub fn primary_location_mut(&mut self) -> &mut Option<SpatialThing>
pub fn primary_location_mut(&mut self) -> &mut Option<SpatialThing>
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.
source§impl Agent
impl Agent
sourcepub fn set_image(&mut self, val: Option<Url>) -> &mut Self
pub fn set_image(&mut self, val: Option<Url>) -> &mut Self
The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.
sourcepub fn set_name(&mut self, val: String) -> &mut Self
pub fn set_name(&mut self, val: String) -> &mut Self
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
sourcepub fn set_primary_location(&mut self, val: Option<SpatialThing>) -> &mut Self
pub fn set_primary_location(&mut self, val: Option<SpatialThing>) -> &mut Self
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.
source§impl Agent
impl Agent
sourcepub fn image(&self) -> &Option<Url>
pub fn image(&self) -> &Option<Url>
The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.
sourcepub fn name(&self) -> &String
pub fn name(&self) -> &String
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note(&self) -> &Option<String>
sourcepub fn primary_location(&self) -> &Option<SpatialThing>
pub fn primary_location(&self) -> &Option<SpatialThing>
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.
source§impl Agent
impl Agent
sourcepub fn builder() -> AgentBuilder
pub fn builder() -> AgentBuilder
Create an empty builder object for Agent
sourcepub fn into_builder(self) -> AgentBuilder
pub fn into_builder(self) -> AgentBuilder
Turns Agent into AgentBuilder