pub struct Venue { /* private fields */ }
Expand description
VVENUE (ical-venue)
Implementations
sourceimpl 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
sourceimpl Component for Venue
impl Component for Venue
sourcefn component_kind(&self) -> String
fn component_kind(&self) -> String
sourcefn properties(&self) -> &BTreeMap<String, Property>
fn properties(&self) -> &BTreeMap<String, Property>
Read-only access to properties
sourcefn multi_properties(&self) -> &Vec<Property>
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
sourcefn append_property(&mut self, property: Property) -> &mut Self
fn append_property(&mut self, property: Property) -> &mut Self
Adds a Property
sourcefn append_multi_property(&mut self, property: Property) -> &mut Self
fn append_multi_property(&mut self, property: Property) -> &mut Self
Adds a Property
of which there may be many
sourcefn property_value(&self, key: &str) -> Option<&str>
fn property_value(&self, key: &str) -> Option<&str>
Gets the value of a property.
sourcefn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
Serializes this component into rfc5545
again
sourcefn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a Property
sourcefn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
sourcefn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
sourcefn get_priority(&self) -> Option<u32>
fn get_priority(&self) -> Option<u32>
Gets the relative priority. Read more
sourcefn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Gets the summary
sourcefn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
sourcefn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Gets the description
sourcefn location(&mut self, location: &str) -> &mut Self
fn location(&mut self, location: &str) -> &mut Self
Set the LOCATION 3.8.1.7. Location Read more
sourcefn get_location(&self) -> Option<&str>
fn get_location(&self) -> Option<&str>
Gets the location
sourceimpl From<Venue> for CalendarComponent
impl From<Venue> for CalendarComponent
impl Eq for Venue
impl StructuralEq for Venue
impl StructuralPartialEq for Venue
Auto Trait Implementations
impl RefUnwindSafe for Venue
impl Send for Venue
impl Sync for Venue
impl Unpin for Venue
impl UnwindSafe for Venue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more