pub struct Venue { /* private fields */ }
Expand description
VVENUE (ical-venue)
Implementations§
source§impl Venue
impl Venue
sourcepub fn street_address(&mut self, address: &str) -> &mut Self
pub fn street_address(&mut self, address: &str) -> &mut Self
Set the STREET-ADDRESS Property
This specifies the street address of a location. If the location requires a multiple-line address, they may be separated by an encoded newline “\n”.
sourcepub fn get_street_address(&self) -> Option<&str>
pub fn get_street_address(&self) -> Option<&str>
Gets the value of the STREET-ADDRESS Property
.
sourcepub fn extended_address(&mut self, address: &str) -> &mut Self
pub fn extended_address(&mut self, address: &str) -> &mut Self
Set the EXTENDED-ADDRESS Property
This property provides the opportunity to include extended address information for a location. This property may be used to give additional information about an address that is not usually considered part of the street address. If the location requires a multiple-line address, they may be separated by an encoded newline “\n”.
sourcepub fn get_extended_address(&self) -> Option<&str>
pub fn get_extended_address(&self) -> Option<&str>
Gets the value of the EXTENDED-ADDRESS Property
.
sourcepub fn locality(&mut self, locality: &str) -> &mut Self
pub fn locality(&mut self, locality: &str) -> &mut Self
Set the LOCALITY Property
This specifies the city or locality of a venue.
sourcepub fn get_locality(&self) -> Option<&str>
pub fn get_locality(&self) -> Option<&str>
Gets the value of the LOCALITY Property
.
sourcepub fn region(&mut self, region: &str) -> &mut Self
pub fn region(&mut self, region: &str) -> &mut Self
Set the REGION Property
This specifies the region (state, province, canton, etc.) of a location.
sourcepub fn get_region(&self) -> Option<&str>
pub fn get_region(&self) -> Option<&str>
Gets the value of the REGION Property
.
sourcepub fn country(&mut self, country: &str) -> &mut Self
pub fn country(&mut self, country: &str) -> &mut Self
Set the COUNTRY Property
This specifies the country of a location.
sourcepub fn get_country(&self) -> Option<&str>
pub fn get_country(&self) -> Option<&str>
Gets the value of the COUNTRY Property
.
sourcepub fn postal_code(&mut self, postal_code: &str) -> &mut Self
pub fn postal_code(&mut self, postal_code: &str) -> &mut Self
Set the POSTAL-CODE Property
This specifies the postal code of a location.
sourcepub fn get_postal_code(&self) -> Option<&str>
pub fn get_postal_code(&self) -> Option<&str>
Gets the value of the POSTAL-CODE Property
.
Trait Implementations§
source§impl Component for Venue
impl Component for Venue
source§fn component_kind(&self) -> String
fn component_kind(&self) -> String
source§fn components(&self) -> &[Other]
fn components(&self) -> &[Other]
Read-only access to properties
source§fn multi_properties(&self) -> &Vec<Property>
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
source§fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
Adds a Property
of which there may be many
source§fn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
rfc5545
againsource§fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
Property
source§fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
Property