Struct icalendar::Venue

source ·
pub struct Venue { /* private fields */ }
Expand description

VVENUE (ical-venue)

Implementations§

source§

impl Venue

source

pub fn new() -> Self

Creates a new Venue.

source

pub fn done(&mut self) -> Self

End of builder pattern. copies over everything

source

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

source

pub fn get_street_address(&self) -> Option<&str>

Gets the value of the STREET-ADDRESS Property.

source

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

source

pub fn get_extended_address(&self) -> Option<&str>

Gets the value of the EXTENDED-ADDRESS Property.

source

pub fn locality(&mut self, locality: &str) -> &mut Self

Set the LOCALITY Property

This specifies the city or locality of a venue.

source

pub fn get_locality(&self) -> Option<&str>

Gets the value of the LOCALITY Property.

source

pub fn region(&mut self, region: &str) -> &mut Self

Set the REGION Property

This specifies the region (state, province, canton, etc.) of a location.

source

pub fn get_region(&self) -> Option<&str>

Gets the value of the REGION Property.

source

pub fn country(&mut self, country: &str) -> &mut Self

Set the COUNTRY Property

This specifies the country of a location.

source

pub fn get_country(&self) -> Option<&str>

Gets the value of the COUNTRY Property.

source

pub fn postal_code(&mut self, postal_code: &str) -> &mut Self

Set the POSTAL-CODE Property

This specifies the postal code of a location.

source

pub fn get_postal_code(&self) -> Option<&str>

Gets the value of the POSTAL-CODE Property.

Trait Implementations§

source§

impl Clone for Venue

source§

fn clone(&self) -> Venue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Component for Venue

source§

fn component_kind(&self) -> String

Tells you what kind of Component this is

Might be VEVENT, VTODO, VALARM etc

source§

fn properties(&self) -> &BTreeMap<String, Property>

Read-only access to properties

source§

fn components(&self) -> &[Other]

Read-only access to properties

source§

fn multi_properties(&self) -> &BTreeMap<String, Vec<Property>>

Read-only access to multi_properties

source§

fn append_property(&mut self, property: impl Into<Property>) -> &mut Self

Adds a Property

source§

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

Append a given Component
source§

fn property_value(&self, key: &str) -> Option<&str>

Gets the value of a property.
source§

fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>

Writes Component using std::fmt.
source§

fn to_string(&self) -> String

Serializes this component into rfc5545 again Read more
source§

fn try_into_string(&self) -> Result<String, Error>

Serializes this component into rfc5545 again
source§

fn add_property(&mut self, key: &str, val: &str) -> &mut Self

Construct and append a Property
source§

fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self

Construct and append a Property
source§

fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self

Construct and append a Property
source§

fn timestamp(&mut self, dt: DateTime<Utc>) -> &mut Self

source§

fn get_timestamp(&self) -> Option<DateTime<Utc>>

Gets the DTSTAMP property.
source§

fn get_start(&self) -> Option<DatePerhapsTime>

Gets the DTSTART Property
source§

fn get_end(&self) -> Option<DatePerhapsTime>

Gets the DTEND Property
source§

fn priority(&mut self, priority: u32) -> &mut Self

Defines the relative priority. Read more
source§

fn get_priority(&self) -> Option<u32>

Gets the relative priority. Read more
source§

fn print(&self) -> Result<(), Error>

Prints to stdout
source§

fn summary(&mut self, desc: &str) -> &mut Self

Set the summary
source§

fn get_summary(&self) -> Option<&str>

Gets the summary
source§

fn description(&mut self, desc: &str) -> &mut Self

Set the description
source§

fn get_description(&self) -> Option<&str>

Gets the description
source§

fn uid(&mut self, uid: &str) -> &mut Self

Set the UID
source§

fn get_uid(&self) -> Option<&str>

Gets the UID
source§

fn sequence(&mut self, sequence: u32) -> &mut Self

Set the sequence
source§

fn get_sequence(&self) -> Option<u32>

Gets the SEQUENCE
source§

fn class(&mut self, class: Class) -> &mut Self

Set the visibility class
source§

fn get_class(&self) -> Option<Class>

Gets the visibility class
source§

fn url(&mut self, url: &str) -> &mut Self

Sets the URL.
source§

fn get_url(&self) -> Option<&str>

Gets the URL.
source§

impl Debug for Venue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Venue

source§

fn default() -> Venue

Returns the “default value” for a type. Read more
source§

impl From<Venue> for CalendarComponent

source§

fn from(val: Venue) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Venue

source§

fn eq(&self, other: &Venue) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryInto<String> for Venue

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<String, Self::Error>

Performs the conversion.
source§

impl Eq for Venue

source§

impl StructuralPartialEq for Venue

Auto Trait Implementations§

§

impl Freeze for Venue

§

impl RefUnwindSafe for Venue

§

impl Send for Venue

§

impl Sync for Venue

§

impl Unpin for Venue

§

impl UnwindSafe for Venue

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.