icalendar

Struct 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: impl Into<String>, val: impl Into<String>, ) -> &mut Self

Construct and append a Property
Source§

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

👎Deprecated
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§

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

Source§

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

Gets the LAST_MODIFIED property.
Source§

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

Source§

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

Gets the CREATED property.
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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryInto<String> for Venue

Source§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

Source§

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>,

Source§

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>,

Source§

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.