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) -> &BTreeMap<String, Vec<Property>>
fn multi_properties(&self) -> &BTreeMap<String, 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 append_component(&mut self, child: impl Into<Other>) -> &mut Self
fn append_component(&mut self, child: impl Into<Other>) -> &mut Self
Component
Source§fn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
rfc5545
againSource§fn add_property(
&mut self,
key: impl Into<String>,
val: impl Into<String>,
) -> &mut Self
fn add_property( &mut self, key: impl Into<String>, val: impl Into<String>, ) -> &mut Self
Property
Source§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
Source§fn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Source§fn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Source§fn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Source§fn get_sequence(&self) -> Option<u32>
fn get_sequence(&self) -> Option<u32>
Source§fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
Source§fn get_last_modified(&self) -> Option<DateTime<Utc>>
fn get_last_modified(&self) -> Option<DateTime<Utc>>
LAST_MODIFIED
property.